Recebi recentemente uma imagem do CentOS 7 e estou tendo problemas com a resolução de hosts. Atualmente estou na VPN de uma empresa e todos os recursos da empresa estão disponíveis para mim.
O problema é: nada mais está disponível. Eu tenho tentado acessar sites como google.com e github.com e estou recebendo erros como
unknown host google.com
Como eu configuro meu resolvedor para corrigir isso?
Conteúdo do meu /etc/resolv.conf
:
# Generated by NetworkManager
search vbox
nameserver 10.3.1.1
nameserver 10.3.1.2
nameserver 172.23.28.7
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver 172.23.28.8
Resultado de host google.com 8.8.8.8
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:
google.com has address 216.58.208.142
google.com has IPv6 address 2a00:1450:4009:803::200e
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 30 alt2.aspmx.l.google.com.
Resultado de dig @8.8.8.8 google.com
; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> @8.8.8.8 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57064
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 299 IN A 216.58.208.174
;; Query time: 25 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri Dec 02 11:13:43 GMT 2016
;; MSG SIZE rcvd: 55