Share your knowledge at the LQ Wiki.
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 12-15-2005, 11:27 AM   #1
Registered: Jul 2005
Location: Arlington, VA
Distribution: CentOS 4.1 Kernel 2.6.9-11.EL
Posts: 77

Rep: Reputation: 15
hostname issues

I need my hostname to be "Shenk"

When I issue the hostname command it says this: is my domain name

I checked my hostname file and it says: Shenk

What the hell do I do to get my hostname to just say "Shenk"

Somebody please help me!!?
Old 12-15-2005, 03:35 PM   #2
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Quote: Shenk
You meant /etc/hosts. That's not the place to set hostnames. If you want to set your hostname it's:

hostname shenk

However, that doesn't set the hostname across reboots. What distro are you running? If you're running redhat, the file to edit is: /etc/sysconfig/network



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
Issues setting hostname with DHCP blaroe Ubuntu 2 05-30-2005 04:46 AM
Hostname change issues sfwalter Linux - Networking 1 10-29-2004 03:50 PM
Mail - Hostname issues ?? init Linux - Networking 1 08-23-2004 05:05 AM
hostname issues diwakergupta Linux - Networking 3 02-01-2004 12:44 AM
Hostname issues drxsmurf Mandriva 1 01-24-2004 01:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration