Results 1 to 10 of 15
I cannot connect to Fedora using the hostname. I can only use an IP address. This is mainly for Samba, but I don't think VNC works either......
- 12-01-2009 #1
Connect to Fedora via Hostname?
I cannot connect to Fedora using the hostname. I can only use an IP address. This is mainly for Samba, but I don't think VNC works either...
- 12-02-2009 #2Linux Enthusiast
- Join Date
- Aug 2006
- Location
- Portsmouth, UK
- Posts
- 539
Hi mpg198,
Does the host name resolve if you do a look up or ping the name?
The probable cause is that your host is not registered with a DNS server, or depending on your network size, defined in your local hosts file.RHCE #100-015-395
Please don't PM me with questions as no reply may offend, that's what the forums are for.
- 12-02-2009 #3Just Joined!
- Join Date
- Jan 2005
- Posts
- 17
- 12-02-2009 #4
I shouldn't have to add it to the hosts file, that would be too much effort for every computer.
It works with Windows and Ubuntu, just not Fedora. Is there something in Fedora where it doens't register it's hostname with DNS or something like that?
- 12-02-2009 #5Linux Guru
- Join Date
- Nov 2007
- Posts
- 1,695
Read up on name resolution.
Windows typically has NetBIOS running by default (file/print sharing in Windows). NetBIOS broadcasts to everything on the subnet. For larger networks, it chews a lot of bandwidth and is very annoying.
Samba duplicates NetBIOS via the nmbd daemon. Your Ubuntu machine may have it running.
Hosts files and/or DNS is much cleaner/smarter than relying on NetBIOS. If you have a *small* or home office, NetBIOS may suffice.
That's why NIS, LDAP, DNS, etc. were invented.I shouldn't have to add it to the hosts file, that would be too much effort for every computer.
Ha - MSFT dropped NetBIOS support in IPv6. Yay! It's going away...
NetBIOS name resolution is not supported by Microsoft for Internet Protocol Version 6 (IPv6).
- 12-02-2009 #6
- 12-03-2009 #7Just Joined!
- Join Date
- Jan 2005
- Posts
- 17
Are you able to ping the Fedorah hostname? Does it resolve to the desired IP address? Are they in the same subnet?
- 12-03-2009 #8
- 12-07-2009 #9
Try this
go the terminal and login as a root
then go to /etc
in etc edit the hosts file
in the hosts file add something like 192.168.X.X mywindowsmachine in the end of the line. basically linux look at the hosts file to resolve the ip address if you are no familiar vi there is a step
[user@localhost]$ su -
password
[root@localhost]# cd etc
[root@localhost etc]# vi hosts
<press insert to edit>
192.168.X.X nameofthemachine
<press scc again, and then press :wq to write and quit inside vi>
[root@localhost]# service NetworkManager restart
[root@localhost]# ping nameofthemachine
should be successful.....
another thing you can do the opposite in windows
windows has a host file too
the location is
c:\windows\system32\drivers\etc\hosts
you can edit as the same way the ip then the name of the machine
I would suggest use static IP if you haven't done
- 12-08-2009 #10
I don't want to edit the hosts file, I need a permanent solution.
In Ubuntu I don't have to edit the hosts file...


Reply With Quote
