LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hostname command returned (none) (https://www.linuxquestions.org/questions/linux-newbie-8/hostname-command-returned-none-486539/)

sigmacunfu 09-24-2006 02:03 PM

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.

jstephens84 09-24-2006 02:04 PM

Try the following.
Code:

host

sigmacunfu 09-24-2006 02:05 PM

Quote:

Originally Posted by jstephens84
Try the following.
Code:

host


"command not found"!!!

jstephens84 09-24-2006 02:10 PM

You may have to shutdown and restart the service that uses the /etc/hostname. If I remember correctly isn't that service BIND.

jonlake 09-25-2006 01:09 PM

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

jstephens84 09-25-2006 11:18 PM

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.


All times are GMT -5. The time now is 08:55 AM.