Monday, December 31, 2007

squid : Optimising Web Delivery - dnsserver

squid : Optimising Web Delivery

Detailed Description
Because the standard gethostbyname() library call blocks, Squid must use external processes to actually make these calls. Typically there will be ten dnsserver processes spawned from Squid. Communication occurs via TCP sockets bound to the loopback interface. The functions in dns.cc are primarily concerned with starting and stopping the dnsservers. Reading and writing to and from the dnsservers occurs in the IP and FQDN cache modules.

Command Line Interface
usage: dnsserver -Dhv -s nameserver
-D Enable resolver RES_DEFNAMES and RES_DNSRCH options
-h Help
-v Version
-s nameserver Specify alternate name server(s). 'nameserver'
must be an IP address, -s option may be repeated