This question already has an answer here:
I've recently received an image of CentOS 7 and I'm having issues with resolving hosts. I'm currently on a company's VPN and all company's resources are available to me.
The problem is: nothing else is available. I've been trying to access websites like google.com and github.com and I'm getting errors like
unknown host google.com
How do I configure my resolver to fix this?
Contents of my
# 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
host google.com 188.8.131.52
Using domain server: Name: 184.108.40.206 Address: 220.127.116.11#53 Aliases: google.com has address 18.104.22.168 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.
dig @22.214.171.124 google.com
; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> @126.96.36.199 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 188.8.131.52 ;; Query time: 25 msec ;; SERVER: 184.108.40.206#53(220.127.116.11) ;; WHEN: Fri Dec 02 11:13:43 GMT 2016 ;; MSG SIZE rcvd: 55