Results 1 to 8 of 8
hello all, well i'm running slackware 10, and i want to change my hostname. right now it is, name.name.net i would like it to be my domain name, as name.name.net ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-12-2005 #1Just Joined!
- Join Date
- Dec 2004
- Posts
- 49
changing hostname?
hello all, well i'm running slackware 10, and i want to change my hostname. right now it is, name.name.net i would like it to be my domain name, as name.name.net does not exist. any help please?
- 01-12-2005 #2
You could edit /etc/HOSTNAME and /etc/hosts as well. That are plain text files so any editor would do.
I\'m so tired .....
#200472
- 01-12-2005 #3Just Joined!
- Join Date
- Dec 2004
- Posts
- 49
awsome. thanks alot
- 01-12-2005 #4Linux Newbie
- Join Date
- Jun 2004
- Location
- Chicago
- Posts
- 112
using netconfig can also help you with this.
- 01-13-2005 #5
or
Code:su Password: hostname [newhostname]
- 01-20-2005 #6
i use before "hostname", but after restart it backs my host name to default...
- 01-20-2005 #7
hostname comes with a manual page. There will be your answer.

Code:man hostname
I\'m so tired .....
#200472
- 02-02-2005 #8Just Joined!
- Join Date
- Feb 2005
- Posts
- 1
Changing hostname - my 2 bits
Hi everyone
If all else fails, I had luck when I first installed Slackware 10 a while ago editing the /etc/rc.d/rc.M file ... here's the spot I'm referring to (around line 20 of my /etc/rc.d/rc.M) :
# Set the hostname.
if [ -r /etc/HOSTNAME ]; then
/bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d .)
else
# fall back on this old default:
echo "darkstar.example.net" > /etc/HOSTNAME
/bin/hostname ***JUST TYPE YOUR HOSTNAME HERE***
fi
This will fix the "every reboot" problem ... but I think that creating a /etc/HOSTNAME file is still your best bet!
cheers
-Josh


Reply With Quote
