On Wed, 31 Aug 2005, Bill wrote: > On Wed, 31 Aug 2005 07:58:24 +0200 (CEST) > Otto Moerbeek <[EMAIL PROTECTED]> wrote: > > > > > On Wed, 31 Aug 2005, Bill wrote: > > > > > I have a problem, which will probably end up being a stupid mistake. > > > I have 3.7 running (fresh install) using the stock BIND and DHCP systems > > > > > > My problem is that I cannot get the default domain to work. > > > > > > So: > > > dig www > > > > > > does not work, while > > > dig www.domainname.com > > > > > > does work fine. > > > > How about reading the man page? > > > > +[no]search > > Use [do not use] the search list defined by the > > searchlist or domain directive in resolv.conf (if > > any). The search list is not used by default. > > > > > > -Otto > > Thanks Otto. But aside from convincing me I am just plain crazy... > that just confuses me a bit more. I did spend time with the man > page, But the man page also says, and this is what threw me... > > +domain=somename > Set the search list to contain the single domain > somename, as if specified in a domain directive in > /etc/resolv.conf, and enable search list processing > as if the +search option were given. > > "AS IF specified in the domain directive" which I have. So as I (mis) > understand it, the +search would be in addition to the domain > directive... I was thinking the search list was the search directive, > not the default domain name. Even sounds like that above... It > describes both and then says only one of them is not used by default.
Read again, the search description uses "search list" (the complete list) and "searchlist" (the option in resolv.conf). The search list is consrtructed from the domain + searchlist directives, as described in resolv.conf(5). > My issue is I want to be able to use the default domain other places in > the system. My dhcpd.conf has a whole slew of > > fixed-address prn1; > > Which I'd like the default domain to be looked up. Since I cannot get > a ping to work on the default (or dig) I am pretty sure the problem is > before that. This must be doable, right? Other programs do use the domain search list. Try e.g. host(1). If that does not work, there's indeed something wrong with your config. -Otto