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

Bug 54434

Summary: DNS domain name still does not get set properly
Product: Gentoo Linux Reporter: Colin Kingsley (RETIRED) <tercel>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Colin Kingsley (RETIRED) gentoo-dev 2004-06-19 11:08:18 UTC
originaly my login prompts looked like this:

This is tercel.(none) (Linux ppc 2.6.5-gentoo-r1) 00:10:09

this is despite the fact that I had set my domain name to foo.bar in /etc/dnsdomainname and set my /etc/issue using the \O instead of the \o. It still seems that /etc/init.d/domainname does not actualy set the domain name anywhere but in /etc/resolv.conf.

I did manage to make it look right, but only by placing my domainname in /etc/hosts which has the line:

127.0.0.1       tercel.foo.bar tercel localhost

which is an ugly hack because I want tercel.foo.bar to be associated with my real IP, not 127.0.0.1

the init scripts and the gettys handle hostname and nisdomainnames properly, dns should not be left out. This problem was introduced in bugs 36598, 23441, and 25954. each time it was either marked as a duplicae or as "fixed" when it is obviously not fixed.

one of these bugs has the suggestion that your domain name should be set in /etc/nisdomainname, and that /etc/dnsdomainname is only for the purpose of setting the line in /etc/resolv.conf. if this is the case, it is a very ugly illogical setup, and should be changed. Either way, it should be documented. 

Reproducible: Always
Steps to Reproduce:
1.install system
2.set hostname in /etc/hostname
3.set dns domain name in /etc/dnsdomainname
4.login prompts won't show dns domain name
5.enjoy
Actual Results:  
login prompt was 

This is tercel.(none) (Linux ppc 2.6.5-gentoo-r1) 00:10:09

Expected Results:  
login prompt should be

This is tercel.foo.bar (Linux ppc 2.6.5-gentoo-r1) 00:10:09
Comment 1 SpanKY gentoo-dev 2004-06-19 17:06:24 UTC

*** This bug has been marked as a duplicate of 40206 ***