Ubuntu 16.04 Não é possível resolver o nome do host

1

Estou tentando fazer com que minha instância OpenStack do Ubuntu 16.04 consiga resolver o DNS. Acabei de criar a instância a partir da imagem padrão fornecida do Ubuntu e estou tentando apt-get update minha máquina. No entanto, estou recebendo as seguintes mensagens de erro:

ubuntu@udia-rac:~$ sudo apt-get update
Err:1 http://archive.ubuntu.com/ubuntu xenial InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

Eu tenho o seguinte arquivo dns.cfg:

$ cat /etc/network/interfaces.d/98-google-dns.cfg
auto lo
iface lo inet loopback
    dns-nameservers 8.8.8.8 8.8.4.4

Isso gera meu /etc/resolv.conf:

ubuntu@udia-rac:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4

Ao tentar pingar google.com, o host não está resolvido, mas o ping do IP parece funcionar diretamente.

ubuntu@udia-rac:~$ ping google.com
ping: unknown host google.com
ubuntu@udia-rac:~$ ping 216.58.216.206
PING 216.58.216.206 (216.58.216.206) 56(84) bytes of data.
64 bytes from 216.58.216.206: icmp_seq=1 ttl=51 time=55.5 ms
64 bytes from 216.58.216.206: icmp_seq=2 ttl=51 time=55.5 ms
64 bytes from 216.58.216.206: icmp_seq=3 ttl=51 time=55.5 ms
^C
--- 216.58.216.206 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 55.532/55.557/55.582/0.193 ms

Eu tentei reiniciar meu serviço resolvconf sudo service resolvconf restart , mas isso não resolveu meu problema. Alguma sugestão?

    
por Alexander 10.09.2017 / 00:25

0 respostas