Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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?

share|improve this question
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 '12 at 10:31
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)

share|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 '12 at 22:07

It must have cached those IP addresses.

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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