Hostname Change
How do I go about permanently changing the hostname of my machine? I run:
Code:
hostname mybox |
Try this:
cat /etc/sysconfig/network Do you see a line that says "HOSTNAME=myoldbox" ? I know that's the primary place I edited to change it. And since I use static addressing, I also edited /etc/hosts, though you won't have to if you accept the default with DHCP. If you have configured postfix, maybe you'll have to edit the "myhostname=" line /etc/postfix/main.cf. |
I changed under /etc/hosts,
format as, ip-addr hostname.domain.name hostname |
All times are GMT -5. The time now is 06:47 PM. |