Name Lookup takes a long time

view full story

http://unix.stackexchange.com – I was using a script that uses curl. Quite often curl fail. The error is name lookup timed out I tried to ping google.com and and other sites. Indeed dns (or whatever do the translation from domain name to IP takes a few seconds to do that. How to make my dns server (/resolver, or what is it anyway) work faster? How to test this without a program? How to test dns resolution time? (HowTos)