You are not logged in.

#1 2008-04-24 07:32:59

Misbah
Member
Registered: 2008-02-27
Posts: 218

resolv.conf

deleted

Last edited by Misbah (2012-02-14 05:08:16)

Offline

#2 2008-04-24 09:44:23

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: resolv.conf

"Search list for host-name lookup", according to the man page. It's all explained there.

Offline

#3 2008-04-24 22:54:06

Misbah
Member
Registered: 2008-02-27
Posts: 218

Re: resolv.conf

deleted

Last edited by Misbah (2012-02-14 05:07:42)

Offline

#4 2008-04-27 01:03:14

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: resolv.conf

As pointed out earlier, the search line tells your resolver of the default domain name to search. So say for example you have an internal dns running with all your computers under the domain 'linux.net'. If you were to ping one of your machines as 'bill' instead of 'bill.linux.net', normally the resolver would have no idea what you are talking about return a message as such. When you put the 'search' line in resolv.conf, it tacks on the domain so it can be retried by the resolver and thus found on your network. This can also be accomplished through a properly set domain name on the local machine itself through the hostname calls in your init scripts and in /etc/hosts. Your hostname should be a fully qualified hostname ie 'bill.linux.net' and your hosts file should resemble that same format as well but must be the first alias call. ie:

127.0.0.1 bill.linux.net bill localhost.localdomain localhost

Running 'dnsdomainname' will show you your current domain.

Last edited by T-Dawg (2008-04-27 01:06:18)

Offline

Board footer

Powered by FluxBB