View previous topic :: View next topic |
Author |
Message |
samsdb0 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2003 Posts: 55
|
Posted: Fri Oct 31, 2003 7:45 am Post subject: weird hostname problem |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Ari Rahikkala Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 02 Oct 2002 Posts: 370 Location: Finland
|
Posted: Fri Oct 31, 2003 9:15 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
samsdb0 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2003 Posts: 55
|
Posted: Fri Oct 31, 2003 2:35 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
samsdb0 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2003 Posts: 55
|
Posted: Fri Oct 31, 2003 5:06 pm Post subject: |
|
|
i tried adding -h samsdb0-pc to the dhcpcd option...didnt work |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
samsdb0 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2003 Posts: 55
|
Posted: Sun Nov 02, 2003 3:51 am Post subject: |
|
|
anyone? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Nickw n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Oct 2003 Posts: 53 Location: Pompey, England.
|
Posted: Sun Nov 02, 2003 10:19 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
samsdb0 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2003 Posts: 55
|
Posted: Sun Nov 02, 2003 8:45 pm Post subject: |
|
|
well that now poses the question, why did the hostname work fine under windows....very odd |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
samsdb0 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Mar 2003 Posts: 55
|
Posted: Thu Nov 06, 2003 2:42 pm Post subject: |
|
|
bump |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|