homepage Welcome to WebmasterWorld Guest from 54.237.213.31
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Hostname Issue With CentOS
What am I doing wrong?
ChainsawXIV

5+ Year Member



 
Msg#: 3556355 posted 11:12 pm on Jan 23, 2008 (gmt 0)

I'm setting up a CentOS 5 box on my local network to serve as a test platform and file server, and I'm having some trouble getting it's host name to register properly on the network. I'm hoping someone can tell me what I'm doing wrong.

I've set the hostname in etc/hosts, etc/sysconfig/network, and ifcfg-eth0, but it doesn't seem to be registering with the rest of the network. I can't refer to the CentOS box by name from the other machines on the network (Windows XP boxes), and the machine's Hostname listing in my router's DHCP display is blank.

Any ideas what I've got wrong?

 

lammert

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 3556355 posted 11:05 am on Jan 24, 2008 (gmt 0)

With the protocols Microsoft uses by default in Windows, all machines are telling their names to everyone who wants to hear it and even if they don't want to hear it. Unix implementations are a little bit more shy :) You have to add the name of the your CentOS server to a local DNS server you operate, or to every single hosts file on the other machines. On XP machines you can find the hosts file in C:\WIN...\SYSTEM32\drivers\etc

ChainsawXIV

5+ Year Member



 
Msg#: 3556355 posted 2:19 pm on Jan 24, 2008 (gmt 0)

Thanks, that helps a lot. Am I correct in thinking that setting up my own DNS server is not something that's practical for a home LAN? If it's something I just need to configure, it seems like a better option than setting numerous individual files, but it's not like I plan to actually host to the outside from home.

steve

10+ Year Member



 
Msg#: 3556355 posted 10:08 am on Jan 25, 2008 (gmt 0)

Can you access your server by IP address, i.e 192.168.123.#*$!?

ChainsawXIV

5+ Year Member



 
Msg#: 3556355 posted 4:47 am on Jan 28, 2008 (gmt 0)

As it happens, this seems to have resolved itself almost by accident. After getting Samba working and configured for my file share, I'm able to address the machine by name just as I wanted (including non-Samba related connections, such as HTTP).

I'm not 100% certain it was setting up Samba that made it work. I had tinkered unsuccessfully with a couple of DNS server options, so it could be some side effect of that. But since I never actually got the DNS working, or even fully set up, I'm pretty sure.

I don't like the 'magic' factor in the solution, but I'm not savvy enough with Linux at this point to be more sure.

Thanks for the help and information all.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved