Linode Forum Index Linode Forum
Linode Community Forums
 


hostname issue

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
k7faq



Joined: 17 Jun 2011
Posts: 10

Posted: Sat Jul 09, 2011 9:49 pm    Post subject: hostname issue  

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]
Back to top  
Zr40



Joined: 05 May 2011
Posts: 22

Posted: Sat Jul 09, 2011 10:23 pm    Post subject:  

Did you add the IP and FQDN to /etc/hosts?
Back to top  
k7faq



Joined: 17 Jun 2011
Posts: 10

Posted: Sun Jul 10, 2011 12:25 am    Post subject:  

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
Back to top  
obs



Joined: 07 Mar 2010
Posts: 1403
Location: Earth

Posted: Sun Jul 10, 2011 5:36 am    Post subject:  

/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
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1