DNS server configuration
For every request received from a client, Squid needs to resolve the domain name before it can contact the target web server. For this purpose, Squid can either use the built-in internal DNS client or, external DNS program to resolve the hostnames.
The default behavior is to use the internal DNS client for resolving hostnames unless we have used the --disable-internal-dns
option but it must be set with the configure
program before compiling Squid, as shown:
$ ./configure --disable-internal-dns
Let's have a quick look at the DNS-related configuration directives provided by Squid.
Specifying the DNS program path
The directive
cache_dns_program
is used to specify the path of the external DNS program built with Squid. If we ...
Get Squid Proxy Server 3.1 Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.