Sometime in the last few months some update changed the behaviour of /etc/resolv.conf, so that the "domain" overrides the "search" option if it is placed last in /etc/resolv.conf: http://forums.gentoo.org/viewtopic-t-349082.html /etc/init.d/domainname writes the "domain" option to /etc/resolv.conf every time it is run. Even if the "domain" option already exists, the existing "domain" line is deleted and the "domain" line is written to the end of the file. This essentially makes the resolv.conf "search" option useless. michelangelo ~ # cat /etc/resolv.conf domain wss.yale.edu search wss.yale.edu zoo.cs.yale.edu cs.yale.edu eng.yale.edu yale.edu nameserver 130.132.1.11 nameserver 130.132.1.10 nameserver 130.132.1.9 michelangelo ~ # ssh netra The authenticity of host 'netra (128.36.229.21)' can't be established. RSA key fingerprint is 5e:92:b8:94:90:4c:6f:41:a3:ec:f4:46:77:14:2c:7f. Are you sure you want to continue connecting (yes/no)? michelangelo ~ # /etc/init.d/domainname restart * Setting DNS domainname to wss.yale.edu ... [ok] michelangelo ~ # ssh netra ssh: netra: Name or service not known michelangelo ~ # Reproducible: Always Steps to Reproduce: 1. add some search domains to /etc/resolv.conf 2. /etc/init.d/domainname restart 3. try to use your search domains Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11.11 i686) ================================================================= System uname: 2.6.11.11 i686 Intel(R) Xeon(TM) CPU 1700MHz Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -mfpmath=sse -pipe -s -O2 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-march=pentium4 -mfpmath=sse -pipe -s -O2 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://jove.eng.yale.edu/gentoo-portage" USE="x86 X a52 aac acpi acpi4linux alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2 bzlib cdparanoia cdr crypt cups curl dga dio divx4linux dv emboss encode exif fam fbcon ffmpeg flac foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib jpeg kerberos ldap libg++ libwww lm_sensors lzo mad mikmod mmap mmx mng motif mozilla mp3 mpeg mysql ncurses network nptl nptlonly nvidia ogg oggvorbis openal opengl oss pam pdflib perl pic png posix python qt quicktime readline real rtc samba sdl sharedmem spell sse sse2 ssl svga sysfs threads tiff truetype truetype-fonts type1-fonts usb vorbis win32codecs xine xml2 xmms xosd xpm xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS, PORTDIR_OVERLAY
*** This bug has been marked as a duplicate of 99122 ***