Hey,
I recently ran into some trouble with domains not resolving when using DoT on my RT-AC86U. I figured out that this is due to a timeout because the the resolution takes to long. I verified this by trying to query stubby directly on the router:
As can be seen, the DoT query takes almost 4 seconds (I have seen values up to 10 seconds). This is with Cloudflare DNS, but I also tried quad9 and google DNS, none of which work any better.
This slowness does not seem to be due to my connection being slow when using DoT. I tested this using a script from https://github.com/dcid/dns-over-tls-php-client on my router which gives me resolve times under 0.1 seconds with Cloudflare. Disabling DNSSEC does not make a difference as well. The stubby config is left at default:
I have already tried a factory reset of all setting, but no changes. MerlinWRT version is 384.19.
I would appreciate any debugging/configuration advice.
Best regards,
Murgi
I recently ran into some trouble with domains not resolving when using DoT on my RT-AC86U. I figured out that this is due to a timeout because the the resolution takes to long. I verified this by trying to query stubby directly on the router:
Code:
# time nslookup snbforums.com 127.0.1.1
Server: 127.0.1.1
Address 1: 127.0.1.1
Name: snbforums.com
Address 1: 2606:4700:20::ac43:4551
Address 2: 2606:4700:20::681a:942
Address 3: 2606:4700:20::681a:842
Address 4: 104.26.8.66
Address 5: 104.26.9.66
Address 6: 172.67.69.81
real 0m 3.94s
user 0m 0.00s
sys 0m 0.00s
As can be seen, the DoT query takes almost 4 seconds (I have seen values up to 10 seconds). This is with Cloudflare DNS, but I also tried quad9 and google DNS, none of which work any better.
This slowness does not seem to be due to my connection being slow when using DoT. I tested this using a script from https://github.com/dcid/dns-over-tls-php-client on my router which gives me resolve times under 0.1 seconds with Cloudflare. Disabling DNSSEC does not make a difference as well. The stubby config is left at default:
Code:
# cat /etc/stubby/stubby.yml
resolution_type: GETDNS_RESOLUTION_STUB
dns_transport_list:
- GETDNS_TRANSPORT_TLS
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
tls_query_padding_blocksize: 128
appdata_dir: "/var/lib/misc"
resolvconf: "/tmp/resolv.conf"
edns_client_subnet_private: 1
round_robin_upstreams: 1
idle_timeout: 9000
tls_connection_retries: 2
tls_backoff_time: 900
timeout: 3000
listen_addresses:
- 127.0.1.1@53
upstream_recursive_servers:
- address_data: 1.1.1.1
tls_auth_name: "cloudflare-dns.com"
I have already tried a factory reset of all setting, but no changes. MerlinWRT version is 384.19.
I would appreciate any debugging/configuration advice.
Best regards,
Murgi