Resolv mistery

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
bob83
Forum User
Forum User
Posts: 33
Joined: Wed Oct 28, 2009 8:42 pm

Resolv mistery

Unread post 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?
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Resolv mistery

Unread post 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
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Resolv mistery

Unread post 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 ?
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
Post Reply