on docker host
#cat /etc/resolv.conf
search domain.local
nameserver 127.0.0.1
nameserver 192.168.0.1
#netstat -nvuap|wc -l
28222
#netstat -nvuap|head -n 10
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 192.168.0.15:58272 192.168.0.1:53 ESTABLISHED 12331/samba: task[d
udp 0 0 127.0.0.1:58273 127.0.0.1:53 ESTABLISHED 12331/samba: task[d
udp 0 0 192.168.0.15:58274 192.168.0.1:53 ESTABLISHED 12331/samba: task[d
udp 0 0 127.0.0.1:58275 127.0.0.1:53 ESTABLISHED 12331/samba: task[d
udp 0 0 192.168.0.15:58276 192.168.0.1:53 ESTABLISHED 12331/samba: task[d
udp 0 0 127.0.0.1:58277 127.0.0.1:53 ESTABLISHED 12331/samba: task[d
udp 0 0 127.0.0.1:58278 127.0.0.1:53 ESTABLISHED 12331/samba: task[d
udp 0 0 127.0.0.1:58279 127.0.0.1:53 ESTABLISHED 12331/samba: task[d
in container
#cat /etc/resolv.conf
search domain.local
nameserver 192.168.0.15
#netstat -nvuap|wc -l
28233
#netstat -nvuap|head -n 10
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 127.0.0.1:58272 127.0.0.1:53 ESTABLISHED 58/samba: task[dns]
udp 0 0 192.168.0.15:58273 192.168.0.1:53 ESTABLISHED -
udp 0 0 127.0.0.1:58275 127.0.0.1:53 ESTABLISHED 58/samba: task[dns]
udp 0 0 192.168.0.15:58276 192.168.0.1:53 ESTABLISHED 58/samba: task[dns]
udp 0 0 127.0.0.1:58279 127.0.0.1:53 ESTABLISHED 58/samba: task[dns]
udp 0 0 192.168.0.15:58280 192.168.0.1:53 ESTABLISHED 58/samba: task[dns]
udp 0 0 192.168.0.15:58281 192.168.0.1:53 ESTABLISHED 58/samba: task[dns]
udp 0 0 192.168.0.15:58282 192.168.0.1:53 ESTABLISHED 58/samba: task[dns]
Query time???
#dig @192.168.0.15 google.com
;; communications error to 192.168.0.15#53: timed out
;; communications error to 192.168.0.15#53: timed out; <<>> DiG 9.18.24-0ubuntu0.23.10.1-Ubuntu <<>> @192.168.0.15 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25986
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0;; QUESTION SECTION:
;google.com. IN A;; ANSWER SECTION:
google.com. 82 IN A 108.177.14.100
google.com. 82 IN A 108.177.14.113
google.com. 82 IN A 108.177.14.138
google.com. 82 IN A 108.177.14.139
google.com. 82 IN A 108.177.14.101
google.com. 82 IN A 108.177.14.102;; Query time: 3161 msec
;; SERVER: 192.168.0.15#53(192.168.0.15) (UDP)
;; WHEN: Fri Nov 01 15:14:24 UTC 2024
;; MSG SIZE rcvd: 124
#dig @192.168.0.1 google.com
;; communications error to 192.168.0.1#53: timed out
;; communications error to 192.168.0.1#53: timed out; <<>> DiG 9.18.24-0ubuntu0.23.10.1-Ubuntu <<>> @192.168.0.1 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6578
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;google.com. IN A;; ANSWER SECTION:
google.com. 159 IN A 173.194.221.102
google.com. 159 IN A 173.194.221.138
google.com. 159 IN A 173.194.221.139
google.com. 159 IN A 173.194.221.113
google.com. 159 IN A 173.194.221.100
google.com. 159 IN A 173.194.221.101;; Query time: 129 msec
;; SERVER: 192.168.0.1#53(192.168.0.1) (UDP)
;; WHEN: Fri Nov 01 15:11:34 UTC 2024
;; MSG SIZE rcvd: 135