LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-24-2006, 03:03 PM   #1
sigmacunfu
LQ Newbie
 
Registered: Sep 2006
Posts: 11

Rep: Reputation: 0
hostname command returned (none)


Hi, a weired problem!
I edited /etc/hostname so that I have a hostname, but I issued the hostname command at the prompt it returned (none)!!

Any ideas?

p.s: I'm running debian/testing

Thank you all in advance.
 
Old 09-24-2006, 03:04 PM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Try the following.
Code:
host
 
Old 09-24-2006, 03:05 PM   #3
sigmacunfu
LQ Newbie
 
Registered: Sep 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jstephens84
Try the following.
Code:
host

"command not found"!!!
 
Old 09-24-2006, 03:10 PM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
You may have to shutdown and restart the service that uses the /etc/hostname. If I remember correctly isn't that service BIND.
 
Old 09-25-2006, 02:09 PM   #5
jonlake
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, Gentoo
Posts: 252

Rep: Reputation: 31
Not bind (a computer doesn't have to be running bind to have a hostname). In Fedora it is set when bringing up the networking rc scripts. If you do /etc/init.d/networking restart (don't know if reload is an option) it should set it. you could also do
Code:
# hostname name_of_computer
 
Old 09-26-2006, 12:18 AM   #6
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by jonlake
Not bind (a computer doesn't have to be running bind to have a hostname). In Fedora it is set when bringing up the networking rc scripts. If you do /etc/init.d/networking restart (don't know if reload is an option) it should set it. you could also do
Code:
# hostname name_of_computer

Your right. Forgot about that one.
 
  


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
Hostname was changed on the command prompt pretty.tulip Linux - Newbie 1 04-03-2006 12:21 AM
regarding Returned mail hinetvenkat Linux - Networking 1 11-05-2005 01:40 AM
Running a shell script remotely via 'ssh <hostname> <command>' davee Linux - General 4 10-09-2005 02:38 AM
Can someone tell me a command to determine the hostname of an IP on the network? brow27 Linux - Newbie 4 05-20-2004 04:28 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration