Problema resolvendo próprio nome de host

Problema resolvendo próprio nome de host

Estou executando o servidor 10.04 LTS. Não consigo resolver este problema: "incapaz de resolver o host serverubuntu".

Tentei todas as soluções recomendadas e nenhuma funcionou. Li que esse problema pode surgir de configurações incorretas nos hosts e nos arquivos de nome de host:

Aqui estão os concursos desses arquivos:

Arquivo: nome do host

serverubuntu

Arquivo: hosts

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: tentei várias entradas diferentes para a segunda linha do arquivo hosts:

127.0.1.1  serverubuntu  serverubuntu.hvc.rr.com
127.0.1.1  serverubuntu  serverubuntu.hvc.rr.com serverubuntu

Nenhum funcionou.

Meu servidor recebeu um endereço IP estático: 192.168.1.199

Responder1

Seu arquivo /etc/hosts deve ler

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

informação relacionada