Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Mar 13, 2012 10:34 am 
Offline
Newbie

Joined: Tue Mar 13, 2012 10:24 am
Posts: 2
Hello, does anybody know why hostname -f returns "hostname: Unknown host" for me?

I just set up a CentOS 6 (32-bit) 512MB linode and followed the CentOS wiki to change my hostname to somehostname. I did it by doing the following:

Code:
$hostname somehostname


Also the new hostname permanent by modifying HOSTNAME in /etc/sysconfig/network (HOMENAME=somehostname).

I rebooted the instance even. I now see my correct hostname in the PS1 prompt and if i do just "hostname". However, I couldn't get the full name somehow.

Anybody had a similar issue and know how to resolve it? Thanks!


Top
   
 Post subject:
PostPosted: Wed Mar 14, 2012 1:50 pm 
Offline
Senior Newbie

Joined: Wed Dec 14, 2011 8:55 pm
Posts: 12
Website: http://www.dreamphysix.com
Location: Atlanta, Georgia
Did you follow this guide? http://library.linode.com/networking/co ... tos-fedora


Top
   
 Post subject:
PostPosted: Wed Mar 14, 2012 6:37 pm 
Offline
Senior Member

Joined: Sat Nov 27, 2010 8:21 pm
Posts: 63
It will do that if the hostname is not resolvable. Make sure you actually have a DNS record for the hostname.


Top
   
 Post subject:
PostPosted: Mon Mar 19, 2012 12:23 pm 
Offline
Newbie

Joined: Tue Mar 13, 2012 10:24 am
Posts: 2
jbenamy wrote:


Yes I did.

Nibbler wrote:
It will do that if the hostname is not resolvable. Make sure you actually have a DNS record for the hostname.


I think this may be my problem.

Thanks for the replies!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group