LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-31-2006, 01:31 PM   #1
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
hostname not being changed


Hi,

I set my hostname in /etc/hosts to cern2, however everytime I login the name is cern22 in the shell like:
root@cern22, where does it get that name from?
 
Old 07-31-2006, 01:40 PM   #2
ckin2001
LQ Newbie
 
Registered: Jul 2006
Location: Chambana
Distribution: debian
Posts: 17

Rep: Reputation: 0
/etc/hostname
 
Old 07-31-2006, 02:07 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
Well, it's /etc/hostname in Debian; it might be a bit different in Slackware. Maybe /etc/HOSTNAME?

The file /etc/hosts simply associates IP addresses with host names.
 
Old 07-31-2006, 03:53 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,203
Blog Entries: 3

Rep: Reputation: 1432Reputation: 1432Reputation: 1432Reputation: 1432Reputation: 1432Reputation: 1432Reputation: 1432Reputation: 1432Reputation: 1432Reputation: 1432
Quote:
Originally Posted by IsaacKuo
Well, it's /etc/hostname in Debian; it might be a bit different in Slackware. Maybe /etc/HOSTNAME?

The file /etc/hosts simply associates IP addresses with host names.
Hi,

You are correct for Slackware! The hostname is set in the file /etc/HOSTNAME.
 
  


Reply


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
Knoppix Changed Hostname deadlove75 Linux - Software 4 04-10-2006 12:15 PM
Hostname was changed on the command prompt pretty.tulip Linux - Newbie 1 04-02-2006 11:21 PM
hostname changed - why? greg108 Fedora 3 12-31-2004 07:41 PM
hostname changed. was i hacked???????? Sridhar Guntur Linux - Networking 7 07-23-2004 11:34 AM
changed hostname now problems degraffenried13 Linux - General 2 02-21-2004 06:15 PM


All times are GMT -5. The time now is 09:14 AM.

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