[squid-users] Pass client DNS requests
mcsnv96 at afo.net
Wed Nov 11 16:41:11 UTC 2015
On 11/11/2015 8:52 AM, Matus UHLAR - fantomas wrote:
> On 10.11.15 17:03, Patrick Flaherty wrote:
>> Again I'm fairly new to Squid but loving it. We enforce only certain
>> be accessible via the whitelist directive. Is there a way to pass DNS
>> requests through the proxy for resolution? We are currently using
>> host entries. L
> no. Squid is a HTTP proxy. it's not a DNS proxy.
> use DNS server or DNS proxy for that.
Squid cannot, but you can use an external DNS server, either at the same
location or elsewhere.
You can setup another server (or two) with your own DNS (we use PowerDNS
or pDNS), and then add the entry in squid.conf to use that DNS server.
We have several setup this way.
The squid.conf entry would be like this:
dns_nameservers 188.8.131.52 184.108.40.206
Then on the DNS server just create entries for rerouted or blocked
sites. I would suggest looking at the powerdns groups and mailing list
for more details on this.
More information about the squid-users