Canonical Hostname
How can I set this? Is the command hostname, or is it another one?
|
The simpliest way is to edit
/etc/rc.d/rc.sysinit (as root) this is the part regarding hostname on my box after I've changed hostname 36 37 "if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" ]; then 38 HOSTNAME=yellowstone 39 fi" 40 In the original file created by your distro you should see "HOSTNAME=localhost" instead of localhost type the name you want to give to your box save the file and that did the trick! If this will be helpful for you pls spend a second to click thanks button. Cheers walker :) |
Awesome, thanks.
|
Quote:
have a etc/rc.d/rc.sysinit ? ;) Or the hostname is being set from /etc/rc.d/rc.M ? Cheers, Tink |
Ditto.
|
zoso, if this is for the slack-install have a look at
/etc/HOSTNAME and /etc/rc.d/rc.M Unfortunately you had replied to my post before I did my edit ;) Cheers, Tink |
Oh, sorry. It's for Debian (Sarge). I don't have the '/etc/rc.d' file.
|
I didn't say it was for debian!!
For debian edit /etc/hosts in this way 127.0.0.1 (the name you want to give to the box) localhost separated by spaces as above (it doesn't matter how many they are one or more iis equal) It should work. Let me now walker |
All times are GMT -5. The time now is 02:54 PM. |