Estoy ejecutando el servidor 10.04 LTS. No puedo resolver este problema: "no se puede resolver el servidor hostubuntu".
Intenté todas las soluciones recomendadas y ninguna funcionó. Leí que este problema puede surgir de configuraciones incorrectas en los archivos de hosts y nombres de host:
Aquí tenéis los concursos de estos archivos:
Archivo: nombre de host
serverubuntu
Archivo: anfitriones
127.0.0.1 localhost
127.0.1.1 serverubuntu
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Nota: Probé varias entradas diferentes para la segunda línea del archivo de hosts:
127.0.1.1 serverubuntu serverubuntu.hvc.rr.com
127.0.1.1 serverubuntu serverubuntu.hvc.rr.com serverubuntu
Ninguno ha funcionado.
Tengo a mi servidor asignado una dirección IP estática: 192.168.1.199
Respuesta1
Su archivo /etc/hosts debería leer
127.0.0.1 localhost
127.0.1.1 serverubuntu//change this to 127.0.0.1
192.168.1.199 serverubuntu//add your static IP
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters