Hi all, I upgraded to the latest stable baselayout two days ago. I did etc-update and set up /etc/conf.d/domainname and /etc/conf.d hostname. I deleted the older files /etc/hostname and /etc/dnsdomainname. My nic is an Elsa MC11 Airlancer 11Mbit Wireless Card. I use the pcmcia-cs package to get it up and running. hostname is in boot runlevel, domainname, net.eth0 and pcmcia are in the default runlevel. cat /etc/conf.d/hostname |grep -v "#" HOSTNAME="anna" cat /etc/conf.d/domainname |grep -v "#" OVERRIDE=1 DNSDOMAIN="darkstar.lan" cat /etc/conf.d/net |grep -v "#" config_eth0=( "dhcp" ) cat /etc/conf.d/wireless |grep -v "#" preferred_aps=( "Kingdomoffear" ) associate_order="forcepreferredonly" Now I can access the internet, but I can't ping my hostname once net.eth0 has started: ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.029 ms 64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.039 ms --- localhost ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.029/0.034/0.039/0.005 ms anna ~ # ping anna ping: unknown host anna anna ~ # ping anna.darkstar.lan ping: unknown host anna.darkstar.lan anna ~ # dnsdomainname dnsdomainname: Unknown host anna ~ # domainname (none) anna ~ # hostname anna Starting Gnome, I get a warning: "The network adress of anna couldn't be resolved..." My console login says: "This is anna.unknown_domain" cat /etc/hosts |grep -v "#" 127.0.0.1 localhost anna.darkstar.lan anna anna ~ # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 localhost 255.0.0.0 UG 0 0 0 lo default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 anna ~ # Is this a bug with the baselayout? I also tried a different dhcp client (udhcp instead of dhcpcd) but it didn't help. Cheers Sebastian Reproducible: Always Steps to Reproduce: 1. 2. 3. emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11.12 i686) ================================================================= System uname: 2.6.11.12 i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 17 2005, 22:31:40)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.6.3, 1.5, 1.7.9-r1, 1.4_p6, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/home/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 alsa cdda cddb cdio crypt cups dts dvd ffmpeg foomaticdb freetype gnome gtk gtk2 ithreads jpeg kdeenablefinal mad mmx mmx2 mp3 mpeg ncurses nls ogg oggvorbis png ppds readline rtc spell sse ssl threads truetype truetype-fonts userlocales vcd vorbis wxwindows x86 xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
I can confirm this bug: I have the same settings as Sebastian, but with NISDOMAINNAME set in /etc/conf.d/domainname, too. `domainname' returns my NISDOMAINNAME then as it should, but hostname -f or dnsdomainname return "unknown host". This is a really annoying bug because many Java-applications like ArgoUML won't start at all if they cannot fetch the FQDN. If there's a workarround which one can use till the next baselayout is in portage let us know. Regards, Tassilo
Hi, I've solved the problem here with the help of TrueDFX in the Gentoo forums. See http://forums.gentoo.org/viewtopic-t-347960-start-0-postdays-0-postorder-asc-highlight-.html I simply had to copy /usr/portage/sys-libs/glibc/files/nsswitch.conf to /etc/nsswitch.conf. I cannot remember changing anything in this file, but this solved the problem. Regards, Tassilo
this is probably because nsswitch.conf moved from baselayout to glibc
*** This bug has been marked as a duplicate of 93273 ***