Page 1 of 1

Resolv mistery

Posted: Wed Jan 12, 2011 2:58 pm
by bob83
If i remove /etc/resolv.conf, restart server, i still can dig any unique domain.
How is that possible, how does my vps gets the ip by domain?

Are nameservers in etc/resolv.conf cached somewhere?

Re: Resolv mistery

Posted: Thu Jan 13, 2011 7:48 pm
by faris
resolv.conf is automatically created on Virtuozzo VPSes so if your VPS is on that platform then it may be why this is happening.

Also I would not be terribly surprised to find that if resolv.conf does not exist then Linux might default to 127.0.0.1 ...

Also see which DNS server is shown when you dig.

e.g.

Code: Select all

;; Query time: 44 msec
;; SERVER: 208.67.220.220#53(208.67.220.220)
;; WHEN: Thu Jan 13 23:47:52 2011
;; MSG SIZE  rcvd: 48

Re: Resolv mistery

Posted: Wed Jan 19, 2011 5:12 am
by nobody
bob83 wrote:If i remove /etc/resolv.conf, restart server, i still can dig any unique domain.
How is that possible, how does my vps gets the ip by domain?

Are nameservers in etc/resolv.conf cached somewhere?
Why would you remove the resolv.conf ? How would this help you in any way ?