Resolv.conf and Ping

phn at icke-reklam.ipsec.nu phn at icke-reklam.ipsec.nu
Wed Sep 1 19:46:38 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 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.


More information about the bind-users mailing list