About secure DNS
You can set up a secure DNS on the router using either DNS over Transport Layer Security (DoT), DNS over HTTPS (DoH), or DNS over Quick UDP Internet Connections (DoQ).
DoT: DNS over Transport Layer Security (TLS)
DoT is secure and simple, but identifiable as DNS traffic.
- Protocol: Uses TLS (Transport Layer Security) to encrypt DNS queries and responses.
- Port: Typically operates on port 853.
- Advantages:
- Security: Provides strong encryption and authentication, ensuring that DNS queries are protected from eavesdropping and tampering.
- Simplicity: Easier to implement in environments where TLS is already used for other services.
- Disadvantages:
- Visibility: DNS traffic can be identified as DNS due to the use of a dedicated port (853).
- Performance: May introduce latency due to the overhead of establishing and maintaining TLS connections.
DoH: DNS over HTTPS
DoH is secure and private, integrated with web traffic, but more complex than DoT.
- Protocol: Uses HTTPS (HTTP over TLS) to encrypt DNS queries and responses.
- Port: Operates on port 443, the same port used for regular HTTPS traffic.
- Advantages:
- Privacy: DNS queries are indistinguishable from regular HTTPS traffic, making it harder for third parties to identify and block DNS traffic.
- Integration: Can be easily integrated into existing web infrastructure and benefits from the widespread adoption of HTTPS.
- Disadvantages:
- Complexity: More complex to implement and manage compared to DoT.
- Performance: Might have higher latency due to the overhead of HTTP and TLS.
DoQ: DNS over Quick UDP Internet Connections (QUIC)
DoQ is secure, high performance, and resilient, but less widely adopted than DoT and DoH.
- Protocol: Uses QUIC (Quick UDP Internet Connections) to encrypt DNS queries and responses.
- Port: Typically operates on port 784.
- Advantages:
- Performance: QUIC is designed to reduce latency and improve performance, especially in environments with high packet loss or variable network conditions.
- Security: Provides strong encryption and authentication similar to TLS.
- Resilience: Better handling of network changes and interruptions compared to TCP-based protocols.
- Disadvantages:
- Adoption: QUIC is relatively new and less widely adopted compared to TLS and HTTPS.
- Complexity: Requires support for QUIC, which might not be available in all environments.