[squid-users] DNS lookup fails initially for FQDN in squid

Aashima Madaan amadaan at ncsu.edu
Fri May 27 15:10:48 UTC 2016


>* Hi,
*> >* In my squid configuration file, I am adding a Fully Qualified Domain Name
*>* instead of an IP address for my ICAP server but it is not able to resolve
*>* that name initially
*
Please define "initially" - do you mean:

 - when the squid server is booted up
 - when the squid service is started on an already-running server
 - something else?

@Aashima - initially here means when I start squid service

>* My concern is why there is so much delay in resolving fqdn of an ip. *
What is your DNS setup?

@Aashima - We got company DNS servers which we have added in our
/etc/resolv.conf of that squid machine.

Where is the Squid server pointing for its DNS
resolver?

@Aashima - I see in cache.log that its adding nameservers from /etc/resolv.conf

Initializing IP Cache...

2016/05/27 10:32:52 kid1| DNS Socket created at [::], FD 6

2016/05/27 10:32:52 kid1| DNS Socket created at 0.0.0.0, FD 8

2016/05/27 10:32:52 kid1| Adding nameserver 10.32.1.1 from /etc/resolv.conf

2016/05/27 10:32:52 kid1| Adding nameserver 10.32.1.1 from /etc/resolv.conf

2016/05/27 10:32:52 kid1| Adding nameserver 8.8.8.8 from /etc/resolv.conf

Is that DNS server running and answering queries before the Squid

server/service starts up?

@Aashima I do curl/ping/nslookup for icap server from squid machine,
it is able to resolve that particular ip.


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160527/03a02f8e/attachment.html>


More information about the squid-users mailing list