Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
weird 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
samsdb0
n00b
n00b


Joined: 20 Mar 2003
Posts: 55

PostPosted: Fri Oct 31, 2003 7:45 am    Post subject: weird hostname problem Reply with quote

ok, so my hostname is set to samsdb0-pc

through my school, my computer should then be assigned to
samsdb0-pc.computer.wfu.edu

however, for some reason, it is being assigned to AK-V7CA4.computer.wfu.edu

why would this be???
Back to top
View user's profile Send private message
Ari Rahikkala
Guru
Guru


Joined: 02 Oct 2002
Posts: 370
Location: Finland

PostPosted: Fri Oct 31, 2003 9:15 am    Post subject: Reply with quote

You're using DHCP, right? Check /etc/hostname and, more importantly, /etc/conf.d/net . Assuming you should get your hostname from the DHCP server and the device you use for connecting to the school network, you should have lines somewhat like these in there:

iface_eth0="dhcp"
dhcpd_eth0="-H"

That -H in dhcpcd_eth0 means passing the argument "-H" to dhcpcd, which in turn means forcing setting your hostname to whatever the DHCP server says it should be.
_________________
<laurentius> gentoo linux?
<ari> Yesh.
<laurentius> they look horny
Back to top
View user's profile Send private message
samsdb0
n00b
n00b


Joined: 20 Mar 2003
Posts: 55

PostPosted: Fri Oct 31, 2003 2:35 pm    Post subject: Reply with quote

i do have the iface_eth0="dhcp" line

there is also a line "dhcpcd_eth0="..." but it is commented out

should i uncomment this and put the -H option in?
Back to top
View user's profile Send private message
samsdb0
n00b
n00b


Joined: 20 Mar 2003
Posts: 55

PostPosted: Fri Oct 31, 2003 5:06 pm    Post subject: Reply with quote

i tried adding -h samsdb0-pc to the dhcpcd option...didnt work
Back to top
View user's profile Send private message
samsdb0
n00b
n00b


Joined: 20 Mar 2003
Posts: 55

PostPosted: Sun Nov 02, 2003 3:51 am    Post subject: Reply with quote

anyone?
Back to top
View user's profile Send private message
Nickw
n00b
n00b


Joined: 28 Oct 2003
Posts: 53
Location: Pompey, England.

PostPosted: Sun Nov 02, 2003 10:19 am    Post subject: Reply with quote

I expect the DHCP has an entry in it's database to whatever machine was supposed to be on that IP (or was last on that IP).

Depending on the system admins set-up, you may not be able to change it - it it make take a period for the DHCP servers DB to be updated (you can also have a 'static' dhcp server!)

So what happens is if you query the(a) machines IP, the DHCP server return the name in it's DB associated with that IP... not necessarily the machines name attched to that IP.

Nick
Back to top
View user's profile Send private message
samsdb0
n00b
n00b


Joined: 20 Mar 2003
Posts: 55

PostPosted: Sun Nov 02, 2003 8:45 pm    Post subject: Reply with quote

well that now poses the question, why did the hostname work fine under windows....very odd
Back to top
View user's profile Send private message
samsdb0
n00b
n00b


Joined: 20 Mar 2003
Posts: 55

PostPosted: Thu Nov 06, 2003 2:42 pm    Post subject: Reply with quote

bump
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