Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|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 '12 at 10:31
add comment

3 Answers 3

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
add comment

It must have cached those IP addresses.

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.