192.168.1.1 é o meu roteador NetGear. Tem 8.8.8.8 e 8.8.4.4 definido como DNS.
das janelas:
nslookup google.com 192.168.1.1 // works OK
do Ubuntu:
me@ubuntu:/etc/mail# dig @192.168.1.1 google.com +tcp
;; Connection to 192.168.1.1#53(192.168.1.1) for google.com failed: connection refused.
Eu acho que isso não deveria ir na porta 53, certo? Se sim, qual pode ser a razão para dig
traduzir minha consulta DNS para perguntar ao NetGear na porta errada?
Não consigo consultar 8.8.8.8:
dig @8.8.8.8 google.com
; <<>> DiG 9.9.2-P2 <<>> @8.8.8.8 google.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
root@ubuntuamd:/etc/mail# dig @8.8.8.8 google.com +tcp
no entanto pode com + tcp:
dig @8.8.8.8 google.com +tcp
; <<>> DiG 9.9.2-P2 <<>> @8.8.8.8 google.com +tcp
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59432
;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 88 IN A 46.28.247.93
google.com. 88 IN A 46.28.247.119
//etc
;; Query time: 33 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed May 8 00:20:06 2013
;; MSG SIZE rcvd: 295
no final isso: aqui 127.0.1.1 (dnsmasq right?) responde:
dig google.com
; <<>> DiG 9.9.2-P2 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34747
;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 300 IN A 208.117.224.29
//etc
;; Query time: 3 msec
;; SERVER: 127.0.1.1#53(127.0.1.1)
;; WHEN: Wed May 8 00:04:44 2013
;; MSG SIZE rcvd: 284
ferramenta nm:
me@ubuntu:/etc/mail# nm-tool | tail -n 8 IPv4 Settings:
Address: 192.168.1.3
Prefix: 24 (255.255.255.0)
Gateway: 192.168.1.1
DNS: 192.168.1.1