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.
I setup a Redhat machine and set its hostname to server1.mycompany.com.
Now I cannot ping it or access it by the hostname. However, accessing via the IP address works fine. Is there any way to flushdns or something like that on Linux?
well what DNS do you have? has it ever worked? I assume you have done more than just set the hostname and expect that to magiaclly become known by other systems?
In Linux, the nscd daemon manages the DNS cache. To flush the DNS cache, restart the nscd daemon. To restart the nscd daemon, use the command `/etc/rc.d/init.d/nscd restart`.
However, just setting a host name on a server does not make it available to other machines, neither inside our outside of the network that it is on. Some sort of name resolution is needed, either via DNS or by using your /etc/hosts file on the machine you are trying to connect from.
Last edited by Linville79; 03-18-2008 at 12:53 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.