Problem resolving own hostname

0

Estou executando o servidor 10.04 LTS. Não consigo resolver esse problema: "não é possível resolver o host do servidor".

Eu tentei todas as soluções recomendadas e nenhuma delas funcionou. Eu li que esse problema pode surgir de configurações incorretas nos arquivos hosts e hostname:

Aqui estão os concursos desses arquivos:

Arquivo: hostname

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

Observação: tentei várias entradas diferentes para a segunda linha do arquivo de hosts:

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

Nenhum funcionou.

Eu tenho meu servidor atribuído um endereço IP estático: 192.168.1.199

    
por user137656 08.03.2013 / 00:32

1 resposta

0

Seu arquivo / etc / hosts deve ser lido

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
    
por noel 08.03.2013 / 01:54