Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82944 - glibc-2.3.4.20050125 and mdns
Summary: glibc-2.3.4.20050125 and mdns
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-22 04:45 UTC by Andrei Ivanov
Modified: 2005-05-02 02:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Ivanov 2005-02-22 04:45:43 UTC
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.
Comment 1 SpanKY gentoo-dev 2005-03-30 14:59:28 UTC
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 ?
Comment 2 Andrei Ivanov 2005-03-31 07:56:33 UTC
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.
Comment 3 SpanKY gentoo-dev 2005-04-01 16:04:04 UTC
read `man resolv.conf`

'options ndots' sould fix this
Comment 4 Andrei Ivanov 2005-04-04 01:04:13 UTC
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.
Comment 5 SpanKY gentoo-dev 2005-04-04 18:22:24 UTC
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.
Comment 6 Andrei Ivanov 2005-05-02 02:54:26 UTC
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.