Question : Static route to website in Squid

Good morning,
I have a squid proxy, which is working fine, however cant access a particular domain. The domain is actuallly the Active Directory name, eg mydomain.com. So when you try and goto mydomain.com it fails cause it goes to my AD controller instead of onto the internet to mydomain.com.

I know I can just add mydomain.com into the hosts file of server, however then when the server tries to get to mydomain.com (AD) it goes to the website mydomain.com.

Is it possible in the SQUID config file to specify that mydomain.com is actually 83.105.62.105 instead of 192.168.0.1, so all proxy requests route through to 83.105.62.105, but the server will still do its updates and everything from 192.168.0.1.

Any help would be appriciated on this.

Thank you

Answer : Static route to website in Squid

Hi,
  My answer is along the same lines of the answer provided by jodylemoine.
  Assuming you can use an external DNS Server to resolve your Squid queries and an Internal DNS server to resolve the queries from the Server, you can -
a) Add reference to the the Local DNS Server Ip Address in your Server
b) Add reference to the External DNS server Ip Address in your Squid Configuration file. Add the following parameter to your squid.conf file and reload squid
dns_nameservers <Ip Address of External DNS Server>
Random Solutions  
 
programming4us programming4us