This makes it appear that my hostname if correct:
ubuntu@webserver:~$ hostname
webserver
Below is the command I'm running and the output:
ubuntu@webserver:~$ sudo hostname webserver
sudo: unable to resolve host webserver
Here is what is in my /etc/hosts file:
127.0.0.1 localhost
webserverL
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Here is what is in my /etc/hostname file:
webserver
I'm needing to get this to work properly to use Apache2.
/etc/hosts
file, is thewebserverL
on a different line thanlocalhost
?