2

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?

1
  • 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, 2012 at 10:31

3 Answers 3

3

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)

1
  • It's like you have a 6th sense. I now remember including bind9 when I installed ubuntu 10.04
    – user784637
    Jan 9, 2012 at 22:07
2

It must have cached those IP addresses.

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .