View previous topic :: View next topic |
Author |
Message |
eGore911 Apprentice
Joined: 11 Mar 2003 Posts: 290
|
Posted: Sun Aug 17, 2003 4:57 pm Post subject: hostname problem |
|
|
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 |
|
|
bonsaikitten Apprentice
Joined: 01 Jan 2003 Posts: 213 Location: Shanghai, China
|
Posted: Sun Aug 17, 2003 6:28 pm Post subject: |
|
|
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 |
|
|
eGore911 Apprentice
Joined: 11 Mar 2003 Posts: 290
|
Posted: Mon Aug 18, 2003 7:46 am Post subject: |
|
|
/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 |
|
|
BurnedOutGeek n00b
Joined: 17 Aug 2003 Posts: 27
|
Posted: Mon Aug 18, 2003 11:21 pm Post subject: |
|
|
I have the same problem. I have searched for an answer, but nothing fixes it. Anyone?
Mark |
|
Back to top |
|
|
dbergst Tux's lil' helper
Joined: 25 Mar 2003 Posts: 88
|
Posted: Mon Aug 18, 2003 11:54 pm Post subject: Re: hostname problem |
|
|
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 |
|
|
|