Re: DNS/BIND oddness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Friday, November 21, 2003, at 08:49 AM, John Horne wrote:
> > On Thu, 2003-11-20 at 23:02, Ken Rossman wrote:
> >> I have a glitch, however.  Both "nslookup" and "host" seem to be able
> >> to
> >> resolve short version names (e.g. 'name' for 'name.domain.net'), but
> >> "dig" does not return anything.
> >
> > Try 'dig +search name'.
>
> Here's the part I don't understand.  "dig" works fine on other systems
> I have messed with, but not on mine.
>
> I have both "domain" and "search" specifications in /etc/resolv.conf,
> and I have even set the domain name with "domainname".  None of those
> make it automatic to find short names through DNS.

Ken,

1) I can't remember where I read it, but IIRC, you can only have domain or
search, not both.  They perform the same function, except that search allows
for multiple domain searches in later versions of bind.  Don't bother with
the domain directive, just use search.

2) When I'm testing my specific domain server, I use:
dig @my.dns.server name.of.domain.to.find any

the @my.dns.server ensures that the lookup is against the dns server I'm
testing.  the 'any' at the end is the type of records I'm looking for.

HTH,

Ben


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux