title: DNS solution for Dante SOCKS proxy
body: <p>I am trying to build a SOCKS solution for forward proxy. I am using dante SOCKS proxy as I have heard that big companies like google uses it as forward proxy solution.</p>
  
  <p>on the SOCKS server, I am allowing based on FQDN's like google.com:443</p>
  
  <p>Now the problem is, when the client constructs the packet, it tries to resolve google.com and gets X.X.X.X and sends connect request to SOCKS server. Now when the server receives the packets, it tries to reconstruct the packet to send out to internet, the server again does DNS resolution and if the server gets response as Y.Y.Y.Y, then it doesn't allow client's request as the destination IP in the client's request is different then the server's resolved IP address.</p>
  
  <p>There was a solution in dante client which tells client to put a dummy destination address 0.0.0.1 and sends request to server and server processes it properly then. However that is creating a problem with internal domains as after using that dns resolution method, every requests goes through dante server :(</p>
  
  <p>Please let me know </p>
  
  <ol>
  <li><p>If there is any solution through which would help me in maintaining a DNS record expiry DC wide for e.g. google.com resolves to X.X.X.X and I should be able to resolve to this same IP address on 100's of DNS client and in case if the record changes, then it should immediately change/expire on client.</p></li>
  <li><p>Any other proxy/socks solution which should be transparent to applications for forward proxy</p></li>
  </ol>