Proxy server while maintaining client dns

I’m developing a web proxy server with cURL. Is there any way possible to retain the client’s DNS server when they make web requests? I don’t want the proxy server to make its own DNS queries because if there is a person from the UK for example I want them to get the UK Google sites instead of the Us ones. Thanks guys.

No. It is not possible.

You can’t like specify a DNS server to use for the proxy server based on the IP address of the client? Say a client user from a computer in the UK wants to visit google.com… I know he or she is “in” the UK due to IP address geolocation, and then can I specify a DNS server to use when making the http request to the URL google.com?

If I could do that, then i could DDoS Microsoft and make it look like it come from Google.

Do we see the problem here?