I have several machines on my LAN. Most of them Ubuntu based. Router has DD-WRT (v3.0-r33675M kongac Release: 11/03/17) firmware.
I have set DHCP to serve network settings for all my computers. Router has been set to use 9.9.9.9 for DNS server.
Now I want to verify my computers are using quad9 for DNS, but I am unable to do so. My computers see only the router and are not aware which DNS it is using.
For example, command (in Ubuntu)
sudo netstat -l --inet -n -v -p | grep :53 | grep -i udp
Gives
udp 0 0 127.0.1.1:53 0.0.0.0:*
So I cannot verify I am using quad9 in this manner.
Router does not recognize this command, so I cannot verify DNS setting that way.
I have tried things in this post in computer and in DD-WRT command line, but none help: What DNS servers am I using?
How can I properly verify I am using quad9 for DNS?
; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63261 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;google.com. IN A
;; ANSWER SECTION: google.com. 252 IN A 216.58.195.78
;; Query time: 48 msec ;; SERVER: 127.0.1.1#53(127.0.1.1) ;; WHEN: Sat Nov 25 16:52:30 EET 2017 ;; MSG SIZE rcvd: 55
– Ohto Nordberg Nov 25 '17 at 14:56SERVER: 127.0.1.1#53
. So google.com is already fetched by loacl machine. And stop if any DNS caching server running in your system likednsmasq
– Abhik Bose Nov 25 '17 at 14:59