We are trying to deploy our Rails app using Passenger and Nginx on a Linode Ubuntu 10.04 Lucid box.
We cant seem to set the hostname from the root IPv6 address of our Ubuntu box.
We get the error:
root@`ourIPv6`:~# hostname -f
hostname: Name or service not known
when i type in hostname it returns myhost
however when I type in hostname -f it returns hostname: Name or service not known
What would be the necessary action to take to set the hostname?
hosts file:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
97.107.128.97 plato.example.com plato
Edit
/etc/hostnameand/etc/hostsand make sure that the hostname you want is in your hosts file there and then do#: hostname -F /etc/hostname.