/etc/init.d/domainname does not run /bin/domainname to set the machine's DNS domain name. It merely adds a line with a domain specification to /etc/resolv.conf. Reproducible: Always Steps to Reproduce: 1. Boot machine 1.5 (Note "none" for domain name in pre-login banner) 2. /bin/domainname Actual Results: None (no domain name is displayed) Expected Results: dispalyed the domain name specified in /etc/dnsdomainname. Portage 2.0.49-r4 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22_pre2-gss) ================================================================= System uname: 2.4.22_pre2-gss i686 Pentium II (Deschutes) ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=i686 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/ ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gtk imlib jpeg kde gnome libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl pdflib png qt quicktime sdl slang spell truetype X xml2 xmms xv zlib gdbm berkdb readline svga java mysql gpm tcpd pam ssl perl python"
You are confused. There are two types of domain names: 1) dns domain name 2) nis domain name The first you set in /etc/resolv.conf, the other with the 'domainname' util. Please have a look 'man domainname' - you will see you can only set the NIS/YP domain name with the tools. If you still are convinsed that its a problem with the script, please supply output of 'dnsdomainname', 'cat /etc/resolv.conf'. -- nosferatu linux # cat /etc/*domainname lan lan nosferatu linux # dnsdomainname lan nosferatu linux # nisdomainname lan nosferatu linux #
*** Bug 36598 has been marked as a duplicate of this bug. ***