Local Host Name & DNS Resolution Problem (Works on Windows but not on Linux)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Local Host Name & DNS Resolution Problem (Works on Windows but not on Linux)
Hi Guys,
I guess I am relatively new to Linux. I am using Fedora 9 (Sulphur) and needed to change the host name from the default 'localhost.localdomain' to 'fedora'. I did so in the '/etc/sysconfig/network' file and it seems that the host name has been changed accordingly (if I run '# hostname' it returns with 'fedora' as the hostname).
My problem lies in resolving the host name 'fedora' from the Fedora box (i.e '# ping fedora') - I just get a 'ping: unknown host fedora' response. This would sound like a DNS issue, but, and this is where I get lost, when I ping 'fedora' from a Windows box on the same network, it resolves as expected. Also, if I '# ping google.com' from the Fedora box, the domain resolves fine.
Apache was working fine (and still is) before I changed the hostname, but now when I start the service it warns me that it couldn't determine the fqdn ...
Any ideas?
I have disabled SELinux and the firewall just to be sure.
I realise that I can do that, but it won't solve the problem. The windows machine on the network is named lawrance ... I can't '# ping lawrance' from the Fedora box either, meaning I can't ping any other machine on the network using their respective host names.
Yes, there is a DNS and it is working. /etc/resolv.conf does have the correct DNS entries in it, and I can resolve any normal web address from the Fedora box, just not any other machine on the local network (yet from Windows I can). I think this might have something to do with the fact that Windows uses the NetBios names to resolve too, and Linux doesn't?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.