arghyaxcodes/betterdns

By arghyaxcodes

Updated 7 months ago

A production-ready recursive DNS resolver implemented in C++23 from scratch.

Image
Networking
Developer tools
0

7.4K

arghyaxcodes/betterdns repository overview

BetterDNS

BetterDNS is a production-ready recursive DNS resolver written in modern C++23. It fully implements the DNS resolution chain by querying root, TLD, and authoritative servers directly, without relying on your system's DNS resolver.


Features

  • Full recursive DNS resolution from root servers to authoritative servers
  • Strict RFC compliance (RFC 1034, 1035, 2181, 4034, 7766)
  • High-performance caching with TTL and LRU eviction
  • Supports DNS record types: A, AAAA, CNAME, NS, MX, TXT, SOA, ANY
  • Thread-safe and supports concurrent queries
  • Verbose mode for detailed query tracing
  • Easy configuration via environment variables and CLI flags
  • Official Docker image with multi-stage build and security optimizations

Usage

docker run --rm arghyaxcodes/betterdns example.com

# Query IPv6 (AAAA) record
docker run --rm arghyaxcodes/betterdns -t AAAA example.com

# Verbose output showing resolution steps
docker run --rm arghyaxcodes/betterdns -v example.com


License

BSD 3-Clause License


⭐ If you find BetterDNS useful, please star it on GitHub!

Tag summary

Content type

Image

Digest

sha256:fec7a55a1

Size

29.4 MB

Last updated

7 months ago

docker pull arghyaxcodes/betterdns:v1.0.0