howto have internal BIND resolve "host" (internal host name/no dots)?

Mark Andrews marka at isc.org
Mon Feb 23 22:43:35 UTC 2015


In message <54EBA9B8.2000801 at tlinx.org>, "L. A. Walsh" writes:
> 
> 
> 
> 
> Something seems to have changed on my network setup
> (windows workstation using a linux-server for internet-interaction
> including DNS running bind).
> 
> For some reason when I look up a local host name,
> 
> 'myputer' I can't get it to return an addr,
> and instead it appears to be querying root servers
> for domain 'myputer'.

Check your DHCP configuration.  There is a DHCP option that is used
to set the default search path.
 
> when I try using a "dig myputer" on the server,
> it comes back with NXDOMAIN.
> 
> How can I tell bind server that if a hostname has no dots, don't
> go off and query somewhere?

You can't.  All queries named get are absolute.  The client decides if
a presented name is relative or not.
 
> (below is checked and local information)...
> 
> Thanks (I hope)...
> 
> 
> my /etc/resolv.conf
> has an options "ndots:2", but even if not used,
> doesn't dig default to a minimum of 1 'dot' as
> normal cutoff before treating it as an absolute name?

ndots or less is treated as relative then absolute.  
 
> I have "+search" for it to use my searchlist
> in resolv.conf as well to only search in internal domains:
> 
> search hs.tlinx.org sc.tlinx.org
> 
> Current version am using:
> 
> BIND 9.9.2-P2 built with '--prefix=/usr' '--bindir=/usr/bin' 
> '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--localstatedir=/var' 
> '--libdir=/usr/lib64' '--includedir=/usr/include/bind' 
> '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-openssl' 
> '--enable-threads' '--with-libtool' '--enable-runidn' '--with-libxml2' 
> '--with-dlz-mysql' '--with-dlz-ldap' 'CFLAGS=-fmessage-length=0 
> -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector 
> -funwind-tables -fasynchronous-unwind-tables -g -DNO_VERSION_DATE 
> -fno-strict-aliasing' 'LDFLAGS=-L/usr/lib64'
> using OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
> 
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org


More information about the bind-users mailing list