After upgrading from glibc-2.3.4.20041102, dns queries no longer search for host belonging to the .local domain. /etc/host.conf contains mdns off /etc/resolv.conf contains search local Queries for the full name are resolved.
you neglected to provide `emerge info` like the bug report page told you to also, you need to describe your setup more ... /etc/resolv.conf settings ? /etc/hosts settings ? settings on the dns server ?
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) XP 2600+ Gentoo Base System version 1.6.10 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 21 2005, 10:58:26)] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://ftp.lug.ro/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow aalib acl acpi adns alsa apache2 avi bitmap-fonts bzlib caps crypt cups curl curlwrappers dio emboss encode exif expat flac font-server foomaticdb fortran ftp gd gif gmp gpm imagemagick imap imlib java javamail jpeg junit ldap libg++ libwww mad maildir mailwrapper memlimit mhash mikmod mmap mmx mp3 mpeg ncurses nls nptl offensive oggvorbis pam pcntl pcre pdflib png posix qt quicktime readline ruby samba session shared sharedmem slang slp soap sockets socks5 speex spell sqlite sse ssl svg sysvipc tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vhosts wmf xml xml2 xmlrpc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY /etc/resolv.conf search local beenzgrup.ro nameserver 192.168.1.1 domain beenzgrup.ro 127.0.0.1 localhost # IPV6 versions of localhost and co ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts 80.86.98.142 gw.beenzgrup.ro gw 192.168.1.1 gw.local The dns server is tinydns, bound to 192.168.1.10. On 192.168.1.1, there is dnscache listening, which forwards requests for .local to 192.168.1.10. gw:~# ping nautil ping: unknown host nautil ping nautil.local PING nautil.local (192.168.1.2) 56(84) bytes of data.
read `man resolv.conf` 'options ndots' sould fix this
I've set options ndots:0 in /etc/resolv.conf and it doesn't make any difference. Quote from the man page: "The default for n is ``1'', meaning that if there are any dots in a name, the name will be tried first as an absolute name before any search list elements are appended to it." So, when I try `ping nautil`, with the default behaviour, because it doesn't have any dots in the name, it should just append the names specified in the search list and try to resolve the name. As I've said before, the searh list is this: search local beenzgrup.ro I've tried a strace on `ping nautil`, and it doesn't seem to ask the dns server for nautil.local, but only for nautil.beenzgrup.ro And please remember, this worked fine before upgrading from glibc-2.3.4.20041102 to glibc-2.3.4.20050125 AFAIK, there was a problem with mdns which treated the "local" domain differently and setting the mdsns to off in /etc/host.conf used to disable it, but doesn't seem to work anymore.
also from the manpage: The domain and search keywords are mutually exclusive. If more than one instance of these keywords is present, the last instance wins.
One more question :D /etc/init.d/domainname keeps adding he domain name to /etc/resolv.conf and resolving breaks again. Should I delete domainname from the default runlevel? Thank you.