Resolv.conf and Ping

Mark Andrews Mark_Andrews at isc.org
Wed Sep 1 21:11:15 UTC 2004


> Scott Moseman <scmoseman at gmail.com> wrote:
> > Not really a Bind issue, per say, but maybe you guys know.
> > I'm running Bind and added a subdomain to my main domain.
> > Added this subdomain in resolv.conf as a secondary search.
> > (So assume that I am now using abc.com and sub.abc.com.)
> 
> > nslookup appears to use the first "search" in resolv.conf.
> > ping seems to use the second (last?) "search" in resolv.conf.
> 
> > Basically, what this means, is that my box is unable to ping a
> > hostname that is in abc.com but not in sub.abc.com, although
> > nslookups will return appropriate values.
> 
> > Has anyone had this problem before?  Anything to fix this?
> 
> The general idea is that searchlist won't do any good. Use
> FQDN everywhere ( except perhaps one domain)
> 
> Searchlist will create an ambiguity which domain has been used, sooner
> or later it will get the wrong one and you will waste your
> time troubleshooting.

	Peter instead of ranting about whether search lists are good or
	bad just tell him how to solve the problem.

	There should only be *one* search directive in resolv.conf.

		search abc.com sub.abc.com
 
	Mark
 
> -- 
> Peter Håkanson         
>         IPSec  Sverige      ( At Gothenburg Riverside )
>            Sorry about my e-mail address, but i'm trying to keep spam out,
> 	   remove "icke-reklam" if you feel for mailing me. Thanx.
> 
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org


More information about the bind-users mailing list