LinuxQuestions.org
Review your favorite Linux distribution.
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 03-30-2004, 12:54 PM   #1
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
embarassing hosts question


my hosts file is something like this
127.0.0.1 localhost.localdomain localhost
192.168.1.1 www.mydomain.org <value of HOSTNAME>

after rebooting, it sets my hostname as 192 (ie.. root@192 username)
What in the heck is going on?

R
 
Old 03-30-2004, 01:36 PM   #2
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
On slackware if I do cat /etc/HOSTNAME it will give me the value of the hostname (ex:Ryan.example.com). What does your output look like?
 
Old 03-30-2004, 01:43 PM   #3
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Original Poster
Rep: Reputation: 30
heres the deal

ok after entering that into the /etc/hosts file I ran the command
hostname --file /etc/hosts
which would pull the hostname from that file... apparently I made it harder than what it needed to be as
hostname ryan
would have worked just fine

well it looks good now and I appreciate the effort.

BTW
cat /etc/HOSTNAME
cat: /etc/HOSTNAME: No such file or directory

Ryan II
 
  


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
Embarassing emacs file~ question michaelsanford Linux - Software 3 03-18-2005 10:08 AM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 10:41 PM
embarassing admission acid_kewpie General 14 01-26-2005 09:26 AM
embarassing email ? ryedunn Linux - Newbie 2 01-04-2005 04:33 PM
most embarassing question ever bandofmercy Slackware 10 03-24-2003 06:58 PM


All times are GMT -5. The time now is 06:18 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