Changing Computer Name

I set the computer (RH 8.0) up with the default host name and alias (localhost.localhostdomain & localhost).  Everything works fine.

I want to rename the computer p3linux.locahostdomain & p3 linux.  When I do this, the printer (lpd) fails "Get_local_host: 'p3linux' bad.

Any suggestions on how to get this to work.

R Race
rraceAsked:
Who is Participating?
 
BabuPrasannaConnect With a Mentor Commented:
Here the localhost is not your computer name! Its a default loopback Host Name given to any system. You cannot change this localhost! instead add another alias with your name. Please leave the localhost name untouched! Since many applications will be using localhost rather than 127.0.0.1 for a local addressing.
Addressing localhost will give the application a list of IP addresses for the current system like,
127.0.0.1
192.34.42.1 - for eth0
168.44.62.81 - for eth1
etc...etc.. after calling gethostbyname() function!

Just try adding another aliasname in the next line. And try pinging using "ping <your name>". It should work fine.
0
 
BabuPrasannaCommented:
Here the localhost is not your computer name! Its a default loopback Host Name given to any system. You cannot change this localhost! instead add another alias with your name. Please leave the localhost name untouched! Since many applications will be using localhost rather than 127.0.0.1 for a local addressing.
Addressing localhost will give the application a list of IP addresses for the current system like,
127.0.0.1
192.34.42.1 - for eth0
168.44.62.81 - for eth1
etc...etc.. after calling gethostbyname() function!

Just try adding another aliasname in the next line. And try pinging using "ping <your name>". It should work fine.
0
 
donnyr10Commented:
After you change the name
make sure /etc/hosts has the correct entry
the file is static and does NOT change automatically..

And also your /etc/sysconfig/network

Also Run the dmesg command (dmesg | more) and check the files in /var/log

You may also want to look at
/etc/lpd.perms (Permissions file)

This all should help you with the problem

Take Care
./Donny




0
 
gbonneCommented:
So many conf files ... not always the same with all Linux distributions....

Try the easy way first, run this tool: linuxconf. That little jewel does all the conf files management for you.

Yours,
G.
0
 
CleanupPingCommented:
rrace:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
All Courses

From novice to tech pro — start learning today.