1

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?

user784637
  • 1,542
  • 7
  • 35
  • 52
  • 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 09 '12 at 10:31

3 Answers3

2

It must have cached those IP addresses.

Stone
  • 7,011
  • 1
  • 21
  • 33
2

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)

Dan Andreatta
  • 5,454
  • 2
  • 24
  • 14
0

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

Tim
  • 3,017
  • 17
  • 15