Um problema estranho que tenho há algum tempo:
Com muita frequência, mas não de forma consistente, quando inicializo minha máquina Ubuntu 17.04, não consigo navegar em sites israelenses (estou em Israel). Qualquer nome de host no TLD co.il não é resolvido por navegadores e outros aplicativos, como o ping, enquanto o dig / nslookup os resolve perfeitamente.
Geralmente (embora nem sempre), o que resolve o problema é adicionar os servidores DNS do Google ao /etc/resolv.conf.
Eu adicionei esses servidores de nomes ao /etc/resolvconf/resolv.conf.d/dayday, para que eu não precise adicioná-los manualmente todas as vezes, mas hoje eu iniciei o Ubuntu, e os domínios .co.il não foram resolvidos.
Alguns comandos e arquivos que podem ser de interesse:
$ ping google.co.il
ping: google.co.il: Name or service not known
$ dig google.co.il
; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.co.il
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59430
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.co.il. IN A
;; ANSWER SECTION:
google.co.il. 299 IN A 216.58.205.227
;; Query time: 78 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Sat Aug 12 11:27:04 IDT 2017
;; MSG SIZE rcvd: 57
$ 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
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 127.0.0.53
$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the 'glibc-doc-reference' and 'info' packages installed, try:
# 'info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
$ systemd-resolve --status
Global
DNS Servers: 8.8.8.8
8.8.4.4
DNSSEC NTA: 10.in-addr.arpa
16.172.in-addr.arpa
168.192.in-addr.arpa
17.172.in-addr.arpa
18.172.in-addr.arpa
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test
Link 2 (enp3s0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: allow-downgrade
DNSSEC supported: yes
DNS Servers: 10.0.0.138
DNS Domain: Home
O que pode ser?
Obrigado.