On 09/03/2020 13.06, Andrei Borzenkov wrote:
09.03.2020 14:49, Cristian Rodríguez пишет:
So you are hitting another issue.. queries of name localhost shouldn't even go there in the first place..they shouldn't leak anywhere..should not be asked to the network..
bor@bor-Latitude-E5450:~$ dig localhost any
; <<>> DiG 9.11.3-1ubuntu1.11-Ubuntu <<>> localhost any ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24546 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 65494 ;; QUESTION SECTION: ;localhost. IN ANY
;; ANSWER SECTION: localhost. 0 IN A 127.0.0.1 localhost. 0 IN AAAA ::1
;; Query time: 18 msec ;; SERVER: 127.0.0.53#53(127.0.0.53) ;; WHEN: Mon Mar 09 15:04:47 MSK 2020 ;; MSG SIZE rcvd: 82
bor@bor-Latitude-E5450:~$
Welcome to the wonderful world of systemd-resolved ...
cer@Telcontar:~> dig localhost any ; <<>> DiG 9.11.2 <<>> localhost any ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40349 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;localhost. IN ANY ;; ANSWER SECTION: localhost. 0 IN A 127.0.0.1 localhost. 0 IN AAAA ::1 ;; Query time: 1 msec ;; SERVER: 192.168.1.16#53(192.168.1.16) <=========== another machine in the LAN. ;; WHEN: Mon Mar 23 13:35:12 CET 2020 ;; MSG SIZE rcvd: 82 cer@Telcontar:~> -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)