Name

dns_nameservers

Synopsis

By default, Squid sends DNS queries to the name servers listed in the /etc/resolv.conf file. If you want Squid to use a different set of name servers, you can specify them with this directive. Of course, you can also just change your resolv.conf file.

Syntax

dns_nameservers ip-address ...

Default

No default

Example

dns_nameservers 127.0.0.1 192.168.0.1

Get Squid: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.