Oh- good to know.Your router needs to talk to an NTP server to set its clock before encryption can be used. So, no DoT without a working regular DNS to set that clock first.
Thanks!
Oh- good to know.Your router needs to talk to an NTP server to set its clock before encryption can be used. So, no DoT without a working regular DNS to set that clock first.
With above settings you'll have devices that will ignore the routers DNS settings, but you can force them to use the routers DNS.
Use these setting:
View attachment 30808
Next set your DNSFilter in the LAN settings to router:
View attachment 30809
Now all of your traffic should go through 1.0.0.2. You can check this by tracking the outgoing traffic. Connect to the router by SSH console and enter the following command:
Code:tcpdump -ni eth0 -p port 53 or port 853
When you follow the log, you'll see the DNS request which all should now go through 1.0.0.2 or 1.1.1.2. You can also track the connection to see if they are secure on port 853 or unsecure on port 53.
tcpdump -i eth0 port 53
09:21:51.501330 IP 12-34-56-78.bb.myinternetserviceprovider.XY.35264 > 1.1.1.2.domain: 2+ AAAA? dns.msftncsi.com. (34)
My settings are exactly like yours.
However, when I check the traffic with
Code:tcpdump -i eth0 port 53
in order to test that all the traffic would go thru port 853 instead of 53, for some reason several lines mainly like this start appearing:
Code:09:21:51.501330 IP 12-34-56-78.bb.myinternetserviceprovider.XY.35264 > 1.1.1.2.domain: 2+ AAAA? dns.msftncsi.com. (34)
where IP 12-34-56-78 would contain the exact digits of my current IP 12.34.56.78, and .XY is my two-letter internet country code.
Is there something wrong with my setup? dns.msftncsi.com?
18:21:37.518927 PPPoE [ses 0x67d0] IP <my_public_ip>.54122 > dns9.quad9.net.domain: 10713+ [1au] A? snbforums.com. (54)
18:21:37.534732 PPPoE [ses 0x67d0] IP dns9.quad9.net.domain > <my_public_ip>.54122: 10713 3/0/1 A 104.26.9.66, A 172.67.69.81, A 104.26.8.66 (90)
admin@RT-AC86U-DBA8:/tmp/mnt/amtm/tmp# dig snbforums.com
; <<>> DiG 9.16.8 <<>> snbforums.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10713
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;snbforums.com. IN A
;; ANSWER SECTION:
snbforums.com. 300 IN A 104.26.9.66
snbforums.com. 300 IN A 172.67.69.81
snbforums.com. 300 IN A 104.26.8.66
;; Query time: 19 msec
;; SERVER: 9.9.9.9#53(9.9.9.9)
;; WHEN: Tue Feb 16 18:21:37 MYT 2021
;; MSG SIZE rcvd: 90
admin@RT-AC86U-DBA8:/tmp/mnt/amtm/tmp#
18:42:09.461916 IP <my_public_ip>.44598 > one.one.one.one.853: Flags [.], ack 4262, win 636, length 0
18:42:09.471698 IP dns9.quad9.net.853 > <my_public_ip>.40518: Flags [P.], seq 2884:3123, ack 350, win 118, options [nop,nop,TS val 2463546271 ecr 7251271], length 239
18:42:09.471823 IP <my_public_ip>.40518 > dns9.quad9.net.853: Flags [P.], seq 350:502, ack 3123, win 589, options [nop,nop,TS val 7251273 ecr 2463546271], length 152
18:42:09.471712 IP dns9.quad9.net.853 > <my_public_ip>.40518: Flags [P.], seq 3123:3362, ack 350, win 118, options [nop,nop,TS val 2463546271 ecr 7251271], length 239
18:42:09.480189 IP dns9.quad9.net.853 > <my_public_ip>.40518: Flags [P.], seq 3362:3480, ack 502, win 122, options [nop,nop,TS val 2463546280 ecr 7251273], length 118
18:42:09.480400 IP <my_public_ip>.40518 > dns9.quad9.net.853: Flags [.], ack 3480, win 634, options [nop,nop,TS val 7251273 ecr 2463546271], length 0
18:42:18.491516 IP <my_public_ip>.44598 > one.one.one.one.853: Flags [P.], seq 659:683, ack 4262, win 636, length 24
18:42:18.491683 IP <my_public_ip>.44598 > one.one.one.one.853: Flags [F.], seq 683, ack 4262, win 636, length 0
Is Network Monitoring enabled on the Administration / System tab?My settings are exactly like yours.
However, when I check the traffic with
Code:tcpdump -i eth0 port 53
in order to test that all the traffic would go thru port 853 instead of 53, for some reason several lines mainly like this start appearing:
Code:09:21:51.501330 IP 12-34-56-78.bb.myinternetserviceprovider.XY.35264 > 1.1.1.2.domain: 2+ AAAA? dns.msftncsi.com. (34)
where IP 12-34-56-78 would contain the exact digits of my current IP 12.34.56.78, and .XY is my two-letter internet country code.
Is there something wrong with my setup? dns.msftncsi.com?
Network Monitoring: DNS Query checked, Ping not checked.Is Network Monitoring enabled on the Administration / System tab?
Seems like the smoking gun was already found...It appears some device in your network is asking your DNS 1.1.1.2 to resolve the IP address for dns.msftncsci.com.
A good idea to do so.Thank you all for your input I greatly appreciate it!!!
Also, should i turn on dnssec?
With above settings you'll have devices that will ignore the routers DNS settings, but you can force them to use the routers DNS.
Use these setting:
View attachment 30808
Next set your DNSFilter in the LAN settings to router:
View attachment 30809
Now all of your traffic should go through 1.0.0.2. You can check this by tracking the outgoing traffic. Connect to the router by SSH console and enter the following command:
Code:tcpdump -ni eth0 -p port 53 or port 853
When you follow the log, you'll see the DNS request which all should now go through 1.0.0.2 or 1.1.1.2. You can also track the connection to see if they are secure on port 853 or unsecure on port 53.
I don't think there's any automatic failback to plain DNS if DoT servers are unresponsive. You would need to manually disable DNS Privacy on the WAN page. I may be wrong, since it's been a while since I bothered with DoT, but there is no inherent failover mechanism. The router will restart stubby if it dies, but that's about it.I was under the knowledge that the DNS Server 1 & 2 should be to a different company than DNS-over-TLS Server List since those are the fallback DNS if DNS-over-TLS Server List servers are down I.E. DNS-over-TLS Server List = Cloudflare then DNS Server 1 & 2 Quad 9. If Cloudflare is down, then Quad 9 would be used In your case, if Cloudflare is down, you have no DNS.....Or, am I wrong on my understanding on this?
OK, I was not remembering correctly. According to this post, the DNS Servers 1 & 2 are used at startup. Having all the same would be confusing if performing leak testing (if I understand that correctly).I don't think there's any automatic failback to plain DNS if DoT servers are unresponsive. You would need to manually disable DNS Privacy on the WAN page. I may be wrong, since it's been a while since I bothered with DoT, but there is no inherent failover mechanism. The router will restart stubby if it dies, but that's about it.
Using multiple diverse services is a good practice for redundancy, but if you're using a service for filtering capability, you may not want to use Quad9 if your goal is to filter adult content with 1.1.1.3 for example.
Thanks again for all your help I have learned a lot today. The only thing I have not been able to do is confirm. If I SSH to router via putty and do tcpdump it says command not found. Not sure what I'm doing wrong :/With above settings you'll have devices that will ignore the routers DNS settings, but you can force them to use the routers DNS.
Use these setting:
View attachment 30808
Next set your DNSFilter in the LAN settings to router:
View attachment 30809
Now all of your traffic should go through 1.0.0.2. You can check this by tracking the outgoing traffic. Connect to the router by SSH console and enter the following command:
Code:tcpdump -ni eth0 -p port 53 or port 853
When you follow the log, you'll see the DNS request which all should now go through 1.0.0.2 or 1.1.1.2. You can also track the connection to see if they are secure on port 853 or unsecure on port 53.
It comes from Entware. If you have Entware setup, you can install tcpdump:Thanks again for all your help I have learned a lot today. The only thing I have not been able to do is confirm. If I SSH to router via putty and do tcpdump it says command not found. Not sure what I'm doing wrong :/
opkg update
opkg install tcpdump
tcpdump -i $(nvram get wan0_ifname) -n port 53
Ahhhh thank you. I will have to cross that bridge later this week!It comes from Entware. If you have Entware setup, you can install tcpdump:
Code:opkg update opkg install tcpdump tcpdump -i eth0 -n port 53
You don't have Entware installed yet?Ahhhh thank you. I will have to cross that bridge later this week!
Funny you mention that. I have diversion installed. I wonder why it didn't work out of the box? I'll keep digging!You don't have Entware installed yet?
No problem. You just need an empty usb stick (a few gigabytes of size may be enough, depends on your needs). Connect it to your router, run amtm and format your stick with Format disk of amtm (to ext something, just don't ask me which one is the best choice, ext2 or ext4 or whatever LUL) and create a swap file (2 gigabytes of size would be nice) with amtm swap file management tool as well. Then install Diversion, because it will automagically install Entware for you and you just sit and relax.
And that's it, pretty much. I think.
What happens if youFunny you mention that. I have diversion installed. I wonder why it didn't work out of the box? I'll keep digging!
opkg install tcpdump
I will give this a try Thursday. Thanks!What happens if you
?Code:opkg install tcpdump
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
L | Suggestion: DNS Director, add optional compatibility with DOT | Asuswrt-Merlin | 2 | |
T | Using DOT DNS breaks ECS | Asuswrt-Merlin | 9 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!