Resolv.conf and Ping

Scott Moseman scmoseman at gmail.com
Thu Sep 2 15:55:11 UTC 2004


Thanks for the suggestion, Mark, that appears to work perfect.
I added the second search list and it was more or less working,
so I think I erroneously figured that I was doing it correctly.

Thanks,
Scott Moseman


"Mark Andrews" <Mark_Andrews at isc.org> wrote:
>
> > 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