Giter VIP home page Giter VIP logo

doqd's Introduction

doqd

Go Report License

DNS over QUIC implementation in Go (draft-ietf-dprive-dnsoquic-02)

This repo contains a client and server in conformance with draft-ietf-dprive-dnsoquic-02. Each acts as a proxy for queries from DoQ to plain DNS and vice versa.

Quickstart

Start the server proxy

doqd server --cert cert.pem --key key.pem --upstream localhost:53 --listen localhost:8853
INFO[0000] starting QUIC listener on localhost:8853

Start the client proxy

doqd client --listen localhost:53 --upstream localhost:8853
INFO[0000] starting UDP listener on localhost:53

Query with dig through the client proxy

dig +short natesales.net @localhost
23.141.112.33

Query directly with the q DNS client:

q A natesales.net @quic://localhost:8853
natesales.net. 9h40m58s A 23.141.112.33

Interoperability

This DoQ implementation is designed to be in conformance with draft-ietf-dprive-dnsoquic-02, and therefore only offers the doq-i02 TLS ALPN token. For experimental interop testing, doq.Server and doq.Client can be created with the compat parameter set to true to enable compatibility of other ALPN tokens.

Tuning

As per the quic-go wiki, quic-go recommends increasing the maximum UDP receive buffer size and will show a warning if this value is too small. For DNS queries where the packet sizes are small to begin with, increasing the value won't yield a performance improvement so this is up to the operator.

Local TLS

QUIC requires a TLS certificate. OpenSSL can be used to generate a self-signed local development cert:

openssl req -x509 -newkey rsa:4096 -sha256 -days 356 -nodes -keyout /tmp/key.pem -out /tmp/cert.pem -subj "/CN=localhost"

doqd's People

Contributors

mosajjal avatar natesales avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.