[Dnsmasq-discuss] Multiple upstream servers
Jay Guerette
jayguerette at gmail.com
Wed Mar 14 20:00:26 GMT 2007
In my dnsmasq.conf I have the following lines:
server=199.2.252.10
server=204.97.212.10
server=204.117.214.10
If I run tcpdump to examine the DNS traffic, I'll see something like
this right after dnsmasq starts:
15:50:06.302001 IP 10.0.2.10.33109 > 199.2.252.10.53: 35868+ A?
www.google.com. (32)
15:50:06.302330 IP 10.0.2.10.33109 > 204.97.212.10.53: 35868+ A?
www.google.com. (32)
15:50:06.302363 IP 10.0.2.10.33109 > 204.117.214.10.53: 35868+ A?
www.google.com. (32)
It seems to test all the servers; but then, it always uses the 1st
entry, and never uses the others:
15:50:33.629819 IP 10.0.2.10.33109 > 199.2.252.10.53: 27414+ A?
www.vonage.com. (32)
15:50:37.204607 IP 10.0.2.10.33109 > 199.2.252.10.53: 51735+ A?
a.vonage.com. (30)
15:50:38.349741 IP 10.0.2.10.33109 > 199.2.252.10.53: 18136+ A?
en.wikipedia.org. (34)
15:50:41.938783 IP 10.0.2.10.33109 > 199.2.252.10.53: 31032+ A?
upload.wikimedia.org. (38)
15:50:42.861661 IP 10.0.2.10.33109 > 199.2.252.10.53: 23566+ A?
www.fark.com. (30)
15:50:45.376067 IP 10.0.2.10.33109 > 199.2.252.10.53: 53874+ A?
img.fark.com. (30)
15:50:56.396772 IP 10.0.2.10.33109 > 199.2.252.10.53: 33311+ A?
freshmeat.net. (31)
15:51:00.312975 IP 10.0.2.10.33109 > 199.2.252.10.53: 21917+ A?
images.freshmeat.net. (38)
15:51:04.827497 IP 10.0.2.10.33109 > 199.2.252.10.53: 6974+ A?
dynamic.fmpub.net. (35)
15:51:05.384538 IP 10.0.2.10.33109 > 199.2.252.10.53: 27926+ A?
ad.doubleclick.net. (36)
15:51:10.551276 IP 10.0.2.10.33109 > 199.2.252.10.53: 15007+ A?
mail.google.com. (33)
15:51:14.408420 IP 10.0.2.10.33109 > 199.2.252.10.53: 55896+ A?
www.guildwars.com. (35)
15:51:33.261763 IP 10.0.2.10.33109 > 199.2.252.10.53: 59601+ A?
www.bricklink.com. (35)
If I change the order of the server= lines in my .conf, it will repeat
the initial 'test' behavior and then use the new 1st entry again.
Enabling/disabling 'strict-order' has no impact.
I have tested on RH 9 with v2.38, and Ubuntu 6.06 with v2.25.
More information about the Dnsmasq-discuss
mailing list