Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am having a problem getting the hostname for my machine registered on my internal network. I am running RedHat AS3.0. We have a large network with many names, and I think the resolv.conf is setup properly. I can ping other machines by name, but no other machine can ping me by name, FQDN or otherwise. I setup my hostname by modifying /etc/sysconfig/network, and then restarting /etc/init.d/network.
I can get an IP fine, but my name just isn't getting registered in DNS. This is not a DHCP issue or anything like that because no one else is having this problem, and I have built other Linux machines in the past (different distros) that have worked properly. I initially thought that maybe it was because it is a server build, and servers usually have static IP's with names that must be manually entered into DNS, but I don't know what to change if that is the case.
well it doesn't look like you're actually making any attempt at all to register your server with any DNS provider... anything in /etc/host, /etc/resolv.conf is purely for internal use. Windows can do name resolution via WINS as well as DNS, something that samba can emulate, but WINS as a protocol is horrible, as it is based on broadcasts, so doesn't scale up to larger networks very well at all.
if you're expecting the hostname to get sucked back across into the DNS server, then I would assume it would be down to your choice of DHCP client, as some will pass back the hostname for referencing automatically. on my machine i personally pass the option "-h hostname" to dhcpcd, otherwise the hostname defined doesn't end up back on the server, for cross matching to other domain DNS servers.
Yes, that is what I want. I want the hostname to get sucked across into DNS. I used to work pretty heavily with another distro, and this used to happen automatically. Now I am using RedHat and it doesn't seem to be working.
I did a 'ps -ef | grep dhcp' to see what dhcp client is running, and it looks like I am using dhclient. Don't really see any parameters in its manpage that lets you specify hostname though. What client are you using, or what client would you advise to use?
Just to follow up with this, I finally got it working. I had to make a change in /etc/hosts and /etc/sysconfig/network-scripts/ifcfg-eth0. The files are below if anyone is interested. Thanks for the help!
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 linuxhost1.localdomain linuxhost1