Free.fr ISP nameservers which use ?

It’s a fact, my internet service provider free have lots of differents nameservers to use in resolv.conf file, but what is the best to use ? I decided to test alls just by ping it (it’s not the best way see this [fr] for a best technic, but it’s very useful.

Let’s do some shell one-liner do test it (I sort nameserver by order just for the test) :

% cat /etc/resolv.conf
search free.fr
nameserver 212.27.32.5
nameserver 212.27.32.6
nameserver 212.27.32.176
nameserver 212.27.32.177
nameserver 212.27.39.1
nameserver 212.27.39.2
nameserver 212.27.39.134
nameserver 212.27.39.135
nameserver 213.228.0.23
nameserver 213.228.0.212
nameserver 213.228.0.159
nameserver 213.228.0.168
% for i in $(grep nameserver /etc/resolv.conf|cut -d' ' -f2); do echo $i $(ping -c 1 $i|grep 'ms'|grep -v round|cut -d':' -f2); done;
212.27.32.5 icmp_seq=0 ttl=51 time=44.532 ms
212.27.32.6 icmp_seq=0 ttl=51 time=44.653 ms
212.27.32.176 icmp_seq=0 ttl=51 time=44.510 ms
212.27.32.177 icmp_seq=0 ttl=51 time=44.578 ms
212.27.39.1 icmp_seq=0 ttl=51 time=43.574 ms
212.27.39.2 icmp_seq=0 ttl=51 time=44.620 ms
212.27.39.134 icmp_seq=0 ttl=52 time=44.360 ms
212.27.39.135 icmp_seq=0 ttl=52 time=44.356 ms
213.228.0.23
213.228.0.212
213.228.0.159
213.228.0.168 icmp_seq=0 ttl=51 time=44.209 ms

Finally, it appear the best are 212.27.39.1 and 213.228.0.168 and some are down.

My friend MagicalTux remember me, it’s more useful to always keep the same nameserver to profit of server cache.

By the way, there are open nameservers ;) . For example the more famous are Opendns reachable at website.

I wrote a little Perl script to use them. It fetch website page and retrieve ip of opendns nameservers, then it add them in /etc/resolv.conf file.


About this entry