• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

LINUX QUESTION: DHCP and /etc/hosts

her209

No Lifer
Hello

I have 2 computers networked, one installed with RH7.2 and the other with XP.

The dilemma is that they are both using my router (RT314) to get their IP addresses. So whenever I want to use XDM/KDM/GDM to log into RH, I have to make sure that the /etc/hosts file is up to date otherwise the session will just hang. Using the hostnames, I can ping the linux box from the XP box but not vice versa. I can however do it with IP addresses both ways.

My question is, is there anyway to dynamically update the /etc/hosts file on bootup of the linux box so that hostname-to-ipaddress is possible? I don't want to have static IP address for my boxes.

Thanks in advance!
 
Wow, DHCP for a whole 2 machines! Impressive. Anyhow, back to the "issue" at hand... Write a little script to update it. Shouldnt be too hard with sed. Static ips would be easier and make more sense since you dont have a large number of machines (which is the benefit of dhcp in my opinion).
 
Back
Top