Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: hostname issue
PostPosted: Sat Jul 09, 2011 10:49 pm 
Offline
Senior Newbie

Joined: Fri Jun 17, 2011 12:20 pm
Posts: 13
Someone offer some insight as how to resolve this?

Code:
/bin/hostname --fqdn


results in

Code:
hostname: Name or service not known


this is noticed in just deploying an Ubuntu 10.04 new Server config

Code:
root@fms:~# hostname
fms.csr-az.com


Thanks
Steven[/code]


Top
   
 Post subject:
PostPosted: Sat Jul 09, 2011 11:23 pm 
Offline
Junior Member

Joined: Thu May 05, 2011 9:50 am
Posts: 23
Did you add the IP and FQDN to /etc/hosts?


Top
   
 Post subject:
PostPosted: Sun Jul 10, 2011 1:25 am 
Offline
Senior Newbie

Joined: Fri Jun 17, 2011 12:20 pm
Posts: 13
Yes, thank you. Following is the contents of the /etc/hosts.
I found performing the exact same set of actions on a Debian 6 everything works just fine. I am not sure what the issue is but seems to be specific to the Ubuntu 10.04 config here

# cat /etc/hosts
96.126.120.146 fms.csr-az.com
127.0.0.1 localhost.localdomain localhost


Top
   
 Post subject:
PostPosted: Sun Jul 10, 2011 6:36 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
/etc/hosts should have
Code:
yourip yourfqdn yourhostname

/etc/hostname should have
Code:
yourhostname

Once done you can either reboot or run
Code:
start hostname

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


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