Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35172 - DNS domain name should be setup via the /etc/init.d/net* scripts and not in a seperate service
Summary: DNS domain name should be setup via the /etc/init.d/net* scripts and not in a...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-05 20:05 UTC by Sky Lemon
Modified: 2004-06-27 09:36 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 Sky Lemon 2003-12-05 20:05:41 UTC
It is unintuitive and unexpected to have to 'enable' one's dns domain name after having already set it in /etc/dnsdomainname. The dns domain name should be set to whatever is in /etc/dnsdomainname the same way one doesn't have to 'enable' /etc/hosts by running /etc/init.d/hosts. Why would someone go through the trouble of setting up /etc/dnsdomainname or adding a FQDN to /etc/hosts for the IP corresponding to their machine's NIC(s) if they didn't expect those settings be in effect whenever their network was up?
Comment 1 Elan Ruusamäe 2003-12-27 13:18:30 UTC
as i understood, then /etc/dnsdomainname and /etc/init.d/domainname are for setting up /etc/resolv.conf 'domain' directive

the output of dnsdomainname cames automatically from hostname, eg, you cannot actually SET it. (which is not same for domainname and nisdomainname)
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-05-07 16:01:46 UTC
glen has it right
Comment 3 Brett I. Holcomb 2004-06-27 09:36:12 UTC
Unforunately, even if I run hostname at boot I don't get a domain name with hostname -f.  I only get the hostname.  I have /etc/dnsdominname setup and I have /etc/resolv.conf with domain mydomain.  

On other distros (RH and Caldera) I don't remember having this problem.  How did they do it?  It seems from the mail list that this is an ongoing problem.

How do I make it work?