Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hostname gets clobbered at boot [solved]
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
sideways
n00b
n00b


Joined: 24 Dec 2004
Posts: 37
Location: Los Gatos, CA

PostPosted: Wed Mar 24, 2010 3:24 pm    Post subject: hostname gets clobbered at boot [solved] Reply with quote

Hi,

hostname gets set to localhost.localdomain at boot and domainname is always (none).

New box/installation using
Code:
config_eth0="dhcp"
in /etc/conf.d/net and everything except the box's ability to know its name and domain work great.

I have set /etc/conf.d/hostname. If I 'restart' /etc/init.d/hostname the hostname then gets set. I know the script runs at boot.

I've tried editing /etc/hosts but the file gets edited by something at boot with
Code:
127.0.0.1   localhost.localdomain   localhost
. Is this the dhcp processing? If so I don't want it to overrule me.

I've tried telling dhcpcd.conf what the hostname and domainname are and not to ask the dhcp server for 'em but no luck.

I've triple checked the handbook and searched the forum but am not getting it. Hints?

Thanks! -Ed


Last edited by sideways on Tue Mar 30, 2010 3:19 am; edited 1 time in total
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Mar 24, 2010 4:19 pm    Post subject: Reply with quote

Did you change /etc/hosts ?
Back to top
View user's profile Send private message
sideways
n00b
n00b


Joined: 24 Dec 2004
Posts: 37
Location: Los Gatos, CA

PostPosted: Wed Mar 24, 2010 5:02 pm    Post subject: Reply with quote

d2_racing wrote:
Did you change /etc/hosts ?

Thanks, ya, like I said above, I've set it and it gets clobbered by something with
Code:
127.0.0.1   localhost.localdomain   localhost
Back to top
View user's profile Send private message
sideways
n00b
n00b


Joined: 24 Dec 2004
Posts: 37
Location: Los Gatos, CA

PostPosted: Sat Mar 27, 2010 2:51 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
sideways
n00b
n00b


Joined: 24 Dec 2004
Posts: 37
Location: Los Gatos, CA

PostPosted: Tue Mar 30, 2010 3:18 am    Post subject: Reply with quote

solved. found that NetworkManager was starting up in addition to /etc/conf.d/net stuff. rc-update delete NetworkManager. done.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Mar 30, 2010 12:16 pm    Post subject: Reply with quote

Nice.
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