Skip to content
Contents
GuidesOpenWrt

Diagnose slow CDN downloads after changing encrypted DNS on OpenWrt

Set clear resolution paths for local services, common CDNs, and general domains.

Set clear resolution paths for local services, common CDNs, and general domains. First, record the current client's A/AAAA record responses and webpage connection times. MosDNS and SmartDNS have different rule and caching mechanisms; select one suitable for the current system's capacity.

A step-by-step analysis of the parsing chain

Have dnsmasq listen on a separate port to avoid mutual referral with other proxies. Perform targeted queries for each category and observe forwarding, verifying the authoritative domain, TLS certificate, and failover mechanisms. LAN domain queries are resolved by the local resolver; public domains are tested according to required encryption settings.

Measure DNS speed and actual CDN response time together

On a fixed terminal, obtain A, AAAA, and TTL records from two upstream sources. First, record the resolution latency for each, then connect to the actual returned addresses and verify TLS and the first byte of the response.

Test each cold and hot cache round, logging the record set, TTL, and client TCP/TLS times. Select CDN criteria based on daily site stability. On failure, restore dnsmasq to its original upstream and revalidate the same test domain.

When resolution is fast but application performance degrades, prioritize repairing the upstream path for that domain. Retain internal network condition forwarding, and allow recovery of the previous DNS configuration from the management interface.

Reference

Reference screenshot · DNS Queries over HTTPS (DoH)
Reference screenshot · DNS Queries over HTTPS (DoH)
Reference screenshot · DNS Queries over HTTPS (DoH) Open the original image

IETF RFC 8484 · IETF Trust Legal Provisions © IETF Trust and the RFC authors.

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments