Tuesday, March 30, 2010

Ubuntu DNS super slow

Problem finally fixed! This has been annoying the hell out of me for weeks.
It turns out the problem was with my
/etc/nsswitch.conf
file, which had the following entry
hosts: files wins dns
and I changed it to
hosts: files dns

That is, Ubuntu was trying to resolve hostnames using a WINS server before trying DNS. I don't even have a WINS server, so obviously this causing massive delays in resolving any name, making web browsing interminable.


Fixed.

2 comments:

Felix said...

Thank you so much!
Finally I found the problem! :D

apophys said...

For future reference, in case anybody has the same problem, but uses wins as well: you can move 'wins' to the end of the list