Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40206 - hostname not resolved correctly after installation
Summary: hostname not resolved correctly after installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 54434 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-02 11:02 UTC by Florian Effenberger
Modified: 2004-10-03 01:37 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 Florian Effenberger 2004-02-02 11:02:37 UTC
The hostname is not resolved correctly after installation. I always see

"This is mydhost.(none) ...blabla..."

at logon (so it seems to be /etc/issue). Instead of (none), it should show my DNS domain.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-02-02 12:46:25 UTC
it's cause your dns isnt setup properly

*** This bug has been marked as a duplicate of 40203 ***
Comment 2 Florian Effenberger 2004-02-02 12:52:16 UTC
What do you mean with is not set-up properly?! My DNS has been working fine for two years now, so where could there be a problem?
Comment 3 Yi Quang (RETIRED) gentoo-dev 2004-02-02 15:20:43 UTC
It's not the DNS service.  The documentation is invalid in telling you how to set up your hostname, look at the bug spanky has pointed out to you.  
Comment 4 SpanKY gentoo-dev 2004-02-02 16:07:16 UTC
if your /etc/hosts and/or dns is setup properly then the issue will show correctly

*** This bug has been marked as a duplicate of 40203 ***
Comment 5 solar (RETIRED) gentoo-dev 2004-02-02 17:11:26 UTC
re #0 this a domainname vs a hostname btw.
Comment 6 Florian Effenberger 2004-02-03 10:07:44 UTC
/etc/dnsdomainname reads:
mydomain

/etc/hostname reads:
myhostname

/etc/hosts reads:
127.0.0.1 localhost
192.168.MY.IP myhostname.mydomain myhostname

So what's wrong?
Comment 7 Florian Effenberger 2004-02-23 02:18:59 UTC
I think I have found the bug
The domain name /etc/issue prints must be set with

/bin/domainname

However, /bin/domainname is only called when a NIS domain is set in /etc/nisdomain.

Could that be possible?
Comment 8 Joshua Kinard gentoo-dev 2004-02-23 02:25:30 UTC
Check your /etc/issue, and see if you have a \O instead of a \o in the little sequence of bash escape sequences.  If you have \o, then change it to \O and you should be all set.

I just recently fixed this issue on two of my mips machines, which was stumper for quite some time.
Comment 9 Florian Effenberger 2004-02-23 02:31:29 UTC
Works like a charm now, thanks! Hope you'll put that into Portage soon ;)
Comment 10 SpanKY gentoo-dev 2004-06-19 17:06:25 UTC
*** Bug 54434 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2004-10-03 01:37:12 UTC
baselayout uses \O now