Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 36437

Summary: /etc/init.d/domainname doesn't set DNS domain name
Product: Gentoo Linux Reporter: Greg Muth <greg.muth>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal CC: m.debruijne
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Greg Muth 2003-12-24 10:34:32 UTC
/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"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-12-26 14:42:06 UTC
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 #
Comment 2 SpanKY gentoo-dev 2003-12-27 11:47:07 UTC
*** Bug 36598 has been marked as a duplicate of this bug. ***