Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hostname problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
eGore911
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 290

PostPosted: Sun Aug 17, 2003 4:57 pm    Post subject: hostname problem Reply with quote

Hi all,

i can't get my hostname working. I don't know what went wrong, but something did.

My /etc/hostname contains:
egore913

/etc/init.d/hostname is loaded at boot, telling me:
Setting hostname to "egore913"

But my login says me
"This is (none).nkown_domain (....)..."
(none) login :

I tried reemerging baselayout, i recompiled kernel.... and now i'm wondering what is/may be wrong. Thx for any help
Back to top
View user's profile Send private message
bonsaikitten
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 213
Location: Shanghai, China

PostPosted: Sun Aug 17, 2003 6:28 pm    Post subject: Reply with quote

what happens if you start/restart
/etc/init.d/hostname
?

I've had a similar error but never cared much for it :(
Back to top
View user's profile Send private message
eGore911
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 290

PostPosted: Mon Aug 18, 2003 7:46 am    Post subject: Reply with quote

/etc/init.d/hostname does not set my hostname :(

i tried "/etc/init.d/hostname status" (tells me is running) and then "/etc/init.d/hostname restart". But /bin/hostname returns nothing, eventhough "/etc/init.d/hostname status" tells me it is running .... no idea :(
Back to top
View user's profile Send private message
BurnedOutGeek
n00b
n00b


Joined: 17 Aug 2003
Posts: 27

PostPosted: Mon Aug 18, 2003 11:21 pm    Post subject: Reply with quote

I have the same problem. I have searched for an answer, but nothing fixes it. Anyone?

Mark
Back to top
View user's profile Send private message
dbergst
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2003
Posts: 88

PostPosted: Mon Aug 18, 2003 11:54 pm    Post subject: Re: hostname problem Reply with quote

eGore911 wrote:
Hi all,

i can't get my hostname working. I don't know what went wrong, but something did.

My /etc/hostname contains:
egore913

/etc/init.d/hostname is loaded at boot, telling me:
Setting hostname to "egore913"

But my login says me
"This is (none).nkown_domain (....)..."
(none) login :

I tried reemerging baselayout, i recompiled kernel.... and now i'm wondering what is/may be wrong. Thx for any help


This is somewhat covered in the comments in /etc/init.d/hostname, i.e.:
# We use whatever is in /etc/hostname here. That means:
#
# 1) For doing it the proper way, you should NOT put a
# FQDN in there, but:
# a) Only have the hostname in there (no dns/nis domainname)
# b) Set the dnsdomainname via /etc/resolv.conf
# c) Set the nisdomainname via 'domainname'.
#
# 2) If the user want a FQDN in there, it should be possible
# without hacking things to pieces, but then he should
# know what he is doing ...
#

What I did to resolve a similar problem was to populate the following files:

/etc/hostname - put short name of machine in this file (not FQDN)
/etc/dnsdomainname - name of local DNS domain machine is in
/etc/nisdomainname - name of local NIS domain, even though I am not running NIS, I set it the same as the DNS the domain name (this solved the "none" text at the console logon prompt)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum