On 06.05.2008 13:32, Amos Jeffries wrote:
> 
> Unless the ISP are playing nasty games with DNS the squid option 
> dns_nameservers should work. Squid tries all the listed NS and the first 
> working one or fastest replying one is used.
> 
I can't set dns_nameservers as the assigned name servers vary with the 
ISPs. If I set the name servers of ISP 1 as dns_nameservers in 
squid.conf, things do not work reliably when dialed in via ISP 2.
I just tried it out again:
Dialed in via ISP 1
-------------------
H:\WinHome>ipconfig /all
snip
DNS-Server. . . . . . . . . . . . : 62.53.238.227
                                     193.189.244.205
snip
H:\WinHome>nslookup www.squid-cache.org 62.53.238.227
Server:  mgr1.drms.mediaWays.net
Address:  62.53.238.227
Nicht autorisierte Antwort:
Name:    squid-cache.org
Address:  12.160.37.9
Aliases:  www.squid-cache.org
H:\WinHome>nslookup www.squid-cache.org 193.189.244.205
Server:  frnk.dnscache.mediaways.net
Address:  193.189.244.205
Nicht autorisierte Antwort:
Name:    squid-cache.org
Address:  12.160.37.9
Aliases:  www.squid-cache.org
Dialed in via ISP 2
-------------------
H:\WinHome>ipconfig /all
snip
DNS-Server. . . . . . . . . . . . : 195.50.140.252
                                     145.253.2.203
snip
H:\WinHome>nslookup www.squid-cache.org 62.53.238.227
Server:  mgr1.drms.mediaWays.net
Address:  62.53.238.227
Nicht autorisierte Antwort:
Name:    squid-cache.org
Address:  12.160.37.9
Aliases:  www.squid-cache.org
H:\WinHome>nslookup www.squid-cache.org 193.189.244.205
*** Der Servername fĂźr die Adresse 193.189.244.205 konnte nicht gefunden 
werden:
Query refused
Server:  UnKnown
Address:  193.189.244.205
*** www.squid-cache.org wurde von UnKnown nicht gefunden: Query refused
((tried several times without success))
Dialed in via ISP 2, the first name server of ISP 1 can be used, the 
second name server of ISP 1 can not.
A couple of days ago, I used ISP 3 and none of the name servers of a 
different ISP could be used at all; with different failure messages. In 
one case I remember because of its oddity, I got a list of names and IPs 
of Top-Level name servers.
I don't know exactly how the name server stuff works, but the browser 
for example does not need to be restarted or reconfigured when the name 
servers change. I assume it queries the name servers set in the registry 
every time. Can Squid be configured like this?
Thanks
H.L.
Received on Tue May 06 2008 - 13:03:06 MDT
This archive was generated by hypermail 2.2.0 : Tue May 13 2008 - 12:00:02 MDT