In my opinion domainname/hostname should also be set in /proc/sys/kernel/(domain|host)name through /etc/init.d/domainname as the current procedure could let to some failures, or am I wrong? Reproducible: Always Steps to Reproduce: Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 1500+ GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline arts bonobo svga tcltk java guile mysql X sdl gpm tcpd pam libwww perl python esd imlib oggvorbis gtk qt motif opengl mozilla ldap cdr acl acpi apache2 dvd icc imap jikes moznocompose moznoirc vim-with-x xinerama gnome ssl kde" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -frerun-loop-opt -falign-functions=4 -fforce-mem -funroll-loops -ffast-math -finline-functions -foptimize-sibling-calls -m3dnow -mmmx" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -frerun-loop-opt -falign-functions=4 -fforce-mem -funroll-loops -ffast-math -finline-functions -foptimize-sibling-calls -m3dnow -mmmx -Wno-deprecated" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
I do not understand what you want, please explain more detailed.
This is really the same as bug 23441. The problem may be with agetty -- it is responsible for getting the domain name into /etc/issue and it seems to always pick the nis/yp domain name rather than (correct IMO) dns domain name. hostname -d and dnsdomainname seem to correctly get the domain from /etc/resolv.conf even without running /etc/init.d/domainname. Perhaps the issue is just documentation; the installation directions say to "cat domain.name >/etc/dnsdomainname". If this file exists all the init.d/domainname script does is rewrite /etc/resolv.conf. To summarize: 1) Change install docs, say add "domain" line to /etc/resolv.conf; 2) Fix agetty so that is uses the real domain for %o instead of the nis domain.
*** Bug 23441 has been marked as a duplicate of this bug. ***
Just exchange /o with /O in /etc/issue.
Right, update util-linux and /etc/issue.