kad 0% informativo

Las andanzas virtuales de mi cuerpo físico

Whatever happened to the hostname?

Dear lazy web:
I have two machines working right now, one with fedora, the other with ubuntu live cd. Both machines connect wirelessly to my main router, but only the ubuntu machine displays its hostname in the router client table (in this case "ubuntu"), while the fedora machine is identified by the IP address. This is annoying because I can "ping ubuntu" and it would answer back, but I cannot "ping fedora".
If I connect the machines via ethernet, they both behave the same and I can see the hostname properly set in the router. Both machines answer OK to host lookups as well.
What's the deal? I'm guessing it has something to do with the way fedora handles the ifcfg scripts, but so far I've encountered no way for fedora to set the hostname in the router as ubuntu does.
Ideas?
UPDATE:
It must be my medication still wearing off (or so I hope that's the reason why I missed the whole point here). My main concern, or rather, my question is: What's the difference between ubuntu and fedora's implementation of NetworkManager? I am using it for both machines, what params ubuntu is reading (and from where) that fedora is not?
Trackback URI: http://kad.blegh.net/index.php?trackback/221

#1 Re:Whatever happened to the hostname?

moggers87, <> / 09.09.07, 11:36am  
avatar

I would imagine this has something to do with samba. Couldn't tell you what exactly, but I've seen Windows machines do the same.

[ Responder (1) ]

#1.1 Re:Re:Whatever happened to the hostname?

kad, <E-Mail> / 09.09.07, 9:37pm  
avatar

Nope, no samba here, this is a purely linux network

[ Responder (0) ]

#2 mDNS

Tomasz, <E-Mail> / 09.09.07, 12:11pm  
avatar

Try pinging "fedora.local" and "ubuntu.local", provided you have "nss-mdns" installed.

[ Responder (1) ]

#2.1 Re:mDNS

kad, <E-Mail> / 09.09.07, 9:48pm  
avatar

I had to install it in my fedora machine, but once that happened both ping back properly to ".local"

[ Responder (0) ]

#3 Re:Whatever happened to the hostname?

Juanjo, <E-Mail> / 09.09.07, 12:13pm  
avatar

if you're using DHCP in both machines, I think the difference should be in the dhclient.conf.
May be dhcp-client-identifier is the key ;)

[ Responder (1) ]

#3.1 Re:Re:Whatever happened to the hostname?

kad, <E-Mail> / 09.09.07, 9:49pm  
avatar

That's exactly my point, however, what's the difference between ubuntu and fedora's implementation of NetworkManager? it works without issues in ubuntu, it doesn't in fedora, there must be something different in the sysconfig options in fedora

[ Responder (0) ]

#4 Re:Whatever happened to the hostname?

DDD, <E-Mail> / 09.09.07, 2:24pm  
avatar

See "man dhclient.conf"
Add...
send host-name "my.server.com";
...to...
/etc/dhclient.conf
Good luck.

[ Responder (1) ]

#4.1 Re:Re:Whatever happened to the hostname?

kad, <E-Mail> / 09.09.07, 9:51pm  
avatar

The point is, I want it to work with NetworkManager, that's my main gripe here

[ Responder (0) ]

#5 Re:Whatever happened to the hostname?

Jon Pritchard, <E-Mail> / 09.09.07, 6:50pm  
avatar

I've had the same problem since... Fedora 5. It's annoying when looking in the router's DHCP list.

[ Responder (1) ]

#5.1 Re:Re:Whatever happened to the hostname?

kad, <E-Mail> / 09.09.07, 9:51pm  
avatar

Annoying, that's true

[ Responder (0) ]

#6 Re:Whatever happened to the hostname?

Steven, <> / 09.09.07, 11:15pm  
avatar

http://www.labtestproject.com/using_linux/permanently_change_hostname_on_fedora
I did that first because I was afraid of SELinux doing something bad to my pc.
Then I used this guide
http://www.cyberciti.biz/faq/howto-get-linux-static-dhcp-address/
Since I have a eee pc 1000h my wireless is called ra0, when it came to ifcfg-eth0 I replace it with ifcfg-ra0. Now my I rebooted my router to take in the hostname and it got it. Now I'm trying to figure out how to ping correctly the other computers using the hostname. I think dns file needs to be update on each system dunno on how to do that yet

[ Responder (0) ]

Dejar un comentario

Escribe el código Captcha que estás viendo

Fuentes XML de comentario: RSS | Atom