Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36437 - /etc/init.d/domainname doesn't set DNS domain name
Summary: /etc/init.d/domainname doesn't set DNS domain name
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 36598 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-24 10:34 UTC by Greg Muth
Modified: 2003-12-27 11:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***