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 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.