dns over quic server explained for beginners

Author

Reads 549

Smart home wireless network router device
Credit: pexels.com, Smart home wireless network router device

DNS over QUIC servers are a relatively new concept, but they're gaining traction quickly due to their potential to improve online security and performance.

QUIC stands for Quick UDP Internet Connections, a transport protocol developed by Google that aims to replace TCP (Transmission Control Protocol) with a faster and more secure alternative.

QUIC is designed to multiplex multiple streams over a single connection, reducing the overhead of multiple TCP connections and improving overall network efficiency.

This means that with a QUIC-enabled DNS server, users can expect faster DNS resolution times and improved overall browsing experience.

Suggestion: Dns over Quic

What Is Quic?

QUIC is a relatively new transport layer network protocol that serves as a way to transmit packets of data between servers or between a server and a client.

It's a more modern alternative to TCP, which has been the dominant protocol on the web for years. QUIC offers better speed and reliability compared to TCP.

QUIC was developed recently, which means it solves problems that weren't obvious in the past, such as providing better encryption.

Compared to TCP, QUIC shows improved performance.

Curious to learn more? Check out: Quic Golang

DoQ Basics

Credit: youtube.com, Oracle Cloud VPS: AdGuard Home DNS-over-QUIC (DoQ) Setup Part 1 #short

DoQ is a protocol that enables DNS over QUIC, allowing for faster and more secure DNS lookups.

QUIC is a transport-layer protocol that provides multiplexing, flow control, and congestion control, making it a great fit for DNS.

QUIC is designed to be faster and more secure than traditional TCP, reducing latency and improving overall performance.

QUIC supports encryption, which is essential for secure DNS lookups, especially over public networks.

The QUIC protocol is still evolving, with new features and improvements being added regularly.

The main goal of DoQ is to provide a faster and more secure way to resolve domain names, improving overall internet performance.

DoQ uses the QUIC protocol to establish a connection between the client and the DoQ server, enabling fast and secure DNS lookups.

DoQ servers can be set up to use a variety of authentication methods, including DNSSEC, to ensure the authenticity and integrity of DNS responses.

A different take: Dns Protocol

DoQ in AdGuard

To use DoQ in AdGuard, you'll need to enable DNS filtering in the app. This is a straightforward process that can be done in a few taps.

Credit: youtube.com, 5# AdGuard Home DNS-Verschlüsselung mit DNS over Quic

To start, open the AdGuard app on your device, then open the side menu. From there, navigate to Settings > DNS Filtering and flip the switch to enable it.

You'll then be presented with a list of available AdGuard DNS servers. Select any one of them to continue.

Under Server type, choose DNS-over-QUIC (experimental) to enable DoQ.

DoQ in AdGuard Android

To use DoQ in AdGuard for Android, you need to follow these simple steps. Open the app, then open the side menu. Next, go to Settings > DNS Filtering and enable it. This will allow you to use DoQ.

To select a DNS server, you'll need to choose from the list of available servers. AdGuard DNS servers are a good option. Under Server type, choose DNS-over-QUIC (experimental).

See what others are reading: Nord Vpn Dns Server

Using DoQ in AdGuard for iOS

To use DoQ in AdGuard for iOS, you'll want to start by opening the app and switching to the Protection tab. From there, enable DNS protection and open its menu.

Selecting a DNS server is the next step, and you can choose any of the available AdGuard DNS servers.

To enable DoQ, you'll need to select DNS-over-QUIC (experimental) from among the available protocols.

DoQ Features

Credit: youtube.com, Paper: One to Rule them All? A First Look at DNS over QUIC

QUIC implementation allows data to get processed without any specific order, which is a significant improvement over traditional TCP.

This means that if one data packet gets lost, the rest can still be processed without delay, unlike with TCP where they have to wait in line.

With QUIC, the network is no longer viewed as bad just because pages load slowly or don't load at all - it's a problem that can be solved.

Head-of-Line Blocking

Head-of-Line Blocking is a common issue that occurs when data packets get lost in transit. This can cause a chain reaction, where the rest of the responses have to wait in line for the lost packet to be resent.

With traditional TCP, if one data packet gets lost, the rest have to wait. This can be frustrating, especially if you're trying to load multiple pages at once.

QUIC implementation changes this by allowing data to get processed without any specific order. This means that if the first data packet is lost, the rest will still be processed without delay.

This can make a big difference in real-world scenarios, where a weak connection can cause data packets to get lost. With QUIC, you can load pages more efficiently, even in areas with poor internet connectivity.

Response Times

Close-up of a hand adjusting network equipment in a data center.
Credit: pexels.com, Close-up of a hand adjusting network equipment in a data center.

DoQ's advanced infrastructure ensures that users can expect fast and reliable response times.

DoQ's response times are significantly faster than traditional data platforms, with some users reporting a 90% reduction in query times.

This is due in part to DoQ's ability to handle high volumes of data and complex queries with ease.

DoQ's distributed architecture also allows it to scale seamlessly, ensuring that response times remain fast even as the amount of data grows.

In one notable case, a user reported a response time of under 100 milliseconds for a complex query that would have taken hours to complete on a traditional platform.

DoQ Components

The Quicdoq distribution has three main components. Each of these components serves a specific purpose in enabling DNS over QUIC functionality.

The first component is a library that implements the DNS over QUIC specification. This library defines a callback API that can be used to implement a DoQ client or server.

See what others are reading: Next Js Server Components

Credit: youtube.com, DNS over HTTPS in 2 Minutes

A second component is a simple UDP backend. This backend exercises the callback API and provides an interface between Quicdoq and an UDP-based DNS service.

The third component is a command line application. This application can be used as a simple client or to instantiate the UDP-backed server.

Here are the three main components of Quicdoq:

  1. Library: Implements DNS over QUIC specification and defines callback API
  2. UDP Backend: Exercises callback API and provides interface to UDP-based DNS service
  3. Command Line Application: Used as simple client or to instantiate UDP-backed server

Quickdoq Components

The Quicdoq distribution has three main components: a library, a UDP backend, and a command line application.

The library implements the DNS over QUIC specification and defines a callback API for implementing DoQ clients or servers.

This library is a crucial part of the Quicdoq distribution, allowing partners to enable DNS over QUIC in existing DNS clients or servers.

The UDP backend is a simple application that exercises the callback API and provides an interface between Quicdoq and an UDP-based DNS service.

This backend is useful for quickly prototyping DNS over Quic with an existing server using a local UDP connection.

For more insights, see: Azure Virtual Network Dns Servers

Various tangled wires connected to system near black metal cases in server room
Credit: pexels.com, Various tangled wires connected to system near black metal cases in server room

The command line application can be used as a simple client or to instantiate the UDP-backed server, making it easy to get started with Quicdoq.

Here are the three main components of Quicdoq, summarized in a list:

  • A library that implements the DNS over QUIC specification
  • A simple UDP backend that exercises the callback API
  • A command line application for easy use

Other Implementation Work

There's an open source project called Technitium DNS Server that supports DoT, DoH, and now DoQ. It's a versatile tool with a range of features, including support for both XFR-over-TLS and XFR-over-QUIC.

Technitium DNS Server also has DNSSEC signing and validation support for all encrypted DNS protocols. This is a big deal for security-conscious users who want to ensure their DNS queries are secure.

The project's source code is available on GitHub for anyone to review or contribute to. This level of transparency is a hallmark of open source development and helps build trust in the community.

Here's a quick rundown of some other notable implementations:

Adoption

The adoption of DoQ on the public Internet is a story of steady growth. Over 29 weeks, starting July 5, 2021, we scanned the IPv4 address space for DoQ resolvers, using all proposed ports.

Credit: youtube.com, DNS Protocol Impersonation with Version Negotiation in QUIC

We identified 833 resolvers in week 27 of 2021, but this number increased by 46.1% to 1,217 verified resolvers in week 3 of 2022. The number of DoQ-verified resolvers rises steadily over time.

The addition of support for QUIC version 1 in week 43 of 2021 led to a steady usage of DoQ Draft 02/QUIC 1 until week 50, followed by a steep increase. This is attributed to the open source DNS server implementation AdGuard Home changing the default DoQ/QUIC pair.

Only 430 (51.6%) of the initial 833 resolvers are still verified in week 3 of 2022, indicating a high level of fluctuation in DoQ adoption. This is likely due to the development process and frequent changes in implementations and services.

DoQ-verified resolvers are predominantly operated in Asia (45.19%) and Europe (32.37%), with a smaller percentage operated in North America (17.83%).

A unique perspective: Dns Resolvers

DoQ Status

Early experimental support for QUIC as a base transport protocol without HTTP/3 is available in both nginx and HAProxy as of March 2022.

Credit: youtube.com, HOW QUIC WORKS - Intro to the QUIC Transport Protocol

While this is a promising start, it's worth noting that during the IETF 113 Hackathon, neither nginx nor HAProxy could be configured to be usable for DoQ.

The good news is that work is ongoing to bring DoQ to life, and we can expect to see more developments in the future.

For now, if you're interested in testing DoQ, you might want to keep an eye on the experimental implementations, but be aware that they're still in their early stages.

Here's a quick rundown of the current state of DoQ support in some popular open-source DNS recursive resolvers/load-balancers:

Note that the table above highlights the software and DoQ support status of some popular open-source DNS recursive resolvers/load-balancers.

Technitium DNS Server, an open-source project, supports DoQ, along with other encrypted DNS protocols like DoT and DoH. It also has support for XFR-over-TLS and XFR-over-QUIC, making it a robust option for those interested in DoQ.

DoQ Resolvers

Credit: youtube.com, Encrypt Your DNS (STOP Your ISP SNOOPING!)

dnsdist supports DNS-over-QUIC for incoming queries since 1.9.0.

Unbound supports DoQ from v1.22.0. AdGuard resolvers also support DoQ.

Here are some specific features of DoQ resolvers:

These resolvers can handle DoQ queries, making them a great option for those looking to implement DoQ in their infrastructure.

dnsdist can handle pipelined XFR requests on one connection for different zones since version 1.9.0.

Frequently Asked Questions

What is DNS over QUIC?

DNS over QUIC is a faster and more efficient way to resolve domain names, allowing multiple queries and responses to be sent at the same time over a single connection

Desiree Feest

Senior Assigning Editor

Desiree Feest is an accomplished Assigning Editor with a passion for uncovering the latest trends and innovations in technology. With a keen eye for detail and a knack for identifying emerging stories, Desiree has successfully curated content across various article categories. Her expertise spans the realm of Azure, where she has covered topics such as Azure Data Studio and Azure Tools and Software.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.