I've installed ubuntu server 10.04 on a computer in my LAN. From my router control panel I set it up to be Static DHCP.

My resolv.conf file had the output

nameserver 192.168.1.1

I removed that line and saved .conf file, but I am still able to ping websites from my server's terminal. How can domain names be resolved to ip addresses even though this file is blank?

link|improve this question

1  
Have you cleared the DNS cache since removing resolv.conf or had it resolve anything that wouldn't have been in the cache? – Chopper3 Jan 9 at 10:31
feedback

3 Answers

up vote 1 down vote accepted

nscd is most likely caching the results. Another possibility is that you are running a dns server on your machine, since by default with an empty "nameserver" the resolver routines use "localhost" (man resolv.conf for details)

link|improve this answer
It's like you have a 6th sense. I now remember including bind9 when I installed ubuntu 10.04 – user784637 Jan 9 at 22:07
feedback

It must have cached those IP addresses.

link|improve this answer
feedback

nscd is most likely the service caching your names, stopping or restarting it should clear up the cache for you.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.