cache_dns_program

 < Day Day Up > 

cache_dns_program

Recall that, by default, Squid uses an internal DNS client implementation. However, you also have the choice of using an external helper program to perform DNS lookups. This choice must be made when you run ./configure , with the --disable-internal-dns option.

If you elect to use the external DNS, this directive specifies the pathname to the dnsserver program. This is a misleading name in that the program isn't really a DNS server. It is more like a DNS proxy. The program reads hostnames (or IP addresses) from Squid, executes the necessary lookup, and writes IP addresses (or hostnames) back.

You probably won't need to use this directive, unless you move the Squid binaries after running make install or you're inclined to experiment with the external DNS program.

Syntax

 cache_dns_program   pathname   

Default

 cache_dns_program   $prefix   /libexec/dnsserver 

Example

 cache_dns_program /usr/local/squid/libexec/better_dnsserver 

Related

dns_children

 < Day Day Up > 


Squid
Squid: The Definitive Guide
ISBN: 0596001622
EAN: 2147483647
Year: 2004
Pages: 401
Authors: Duane Wessels

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net