Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-15-2006, 01:23 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
hostname keeps changing


i'm using slackware 7.1 kernel 2.4.27
i dunno why but the hostname keeps changing... here's my /etc/hosts: localhost slackserver

everytime i boot, i keeps changing to other name than that.
help anybody?


zulfikar dharmawan
Old 01-15-2006, 08:22 AM   #2
LQ Newbie
Registered: Feb 2005
Distribution: Debian Etch GNU/Linux
Posts: 1

Rep: Reputation: 0
You need to edit /etc/HOSTNAME.
Old 01-15-2006, 08:27 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
hostname <newhostname>

And you should really think about upgrading your Slackware, unless you've been maintaining it with -current as it's about 5 years outdated now.
Old 01-16-2006, 04:32 AM   #4
LQ Newbie
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0

Thanks all it works,
I'll update it soon, but you know what they say, as long as the system works just fine, why change?


Zulfikar Dharmawan


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing hostname sh4d0w13 Debian 4 06-14-2005 10:45 AM
hostname changing Baracuda Linux - General 4 04-04-2005 08:07 AM
Hostname changing Neorio Linux - Networking 2 01-03-2004 07:11 PM
changing hostname glock19 Linux - Networking 3 02-01-2002 09:26 PM
Changing hostname kbaldor Linux - General 1 01-31-2002 02:01 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration