Whatever happened to the hostname?
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?
#1.1 Re:Re:Whatever happened to the hostname?
Nope, no samba here, this is a purely linux network
#2 mDNS
Try pinging "fedora.local" and "ubuntu.local", provided you have "nss-mdns" installed.
#2.1 Re:mDNS
I had to install it in my fedora machine, but once that happened both ping back properly to ".local"
#3 Re:Whatever happened to the hostname?
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 ;)
#3.1 Re:Re:Whatever happened to the hostname?
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
#4 Re:Whatever happened to the hostname?
See "man dhclient.conf"
Add...
send host-name "my.server.com";
...to...
/etc/dhclient.conf
Good luck.
#4.1 Re:Re:Whatever happened to the hostname?
The point is, I want it to work with NetworkManager, that's my main gripe here
#5 Re:Whatever happened to the hostname?
I've had the same problem since... Fedora 5. It's annoying when looking in the router's DHCP list.
#6 Re:Whatever happened to the hostname?
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








#1 Re:Whatever happened to the hostname?
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.