Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Resolv.conf and Ping

0 views
Skip to first unread message

Scott Moseman

unread,
Sep 1, 2004, 10:44:22 AM9/1/04
to
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?

Thanks,
Scott Moseman


p...@icke-reklam.ipsec.nu

unread,
Sep 1, 2004, 3:46:38 PM9/1/04
to

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.

Mark Andrews

unread,
Sep 1, 2004, 5:11:15 PM9/1/04
to

> Scott Moseman <scmo...@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_A...@isc.org

Scott Moseman

unread,
Sep 2, 2004, 11:55:11 AM9/2/04
to
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

0 new messages