[squid-users] dns_nameservers directive

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Wed Oct 5 11:48:43 UTC 2022


Using squid-6.0.0-20220905-r9358e99f9:
======================================

On sunday, one of our DNS server froze and was not answering any
queries. Shit happens, that's why we have another DNS server.

Our Squid config says:

dns_nameservers 141.42.5.157 141.42.5.156

So, 141.42.5.157 was not answering any queries, and 141.42.5.156 took
over. 

But... monitoring reported dns_query_time rose to about 8000ms,
meaning all http requests took ages, since (I guess) the first dns
server was queried, and (after 8s?) the second server was used.

But according to the docs, "dns_timeout" defaults to 30s.

Is there any way of making squid mark the first server as "dead" (for
e.g. 5 minutes) and use the next server instead?

-- 
Ralf Hildebrandt
Charité - Universitätsmedizin Berlin
Geschäftsbereich IT | Abteilung Netzwerk

Campus Benjamin Franklin (CBF)
Haus I | 1. OG | Raum 105
Hindenburgdamm 30 | D-12203 Berlin

Tel. +49 30 450 570 155
ralf.hildebrandt at charite.de
https://www.charite.de


More information about the squid-users mailing list