Description
NetDNS2 is a pure PHP library for resolving DNS queries and sending dynamic DNS updates. It supports IPv4 and IPv6 over UDP, TCP and TLS, DNS over TLS and DNS over HTTPS using the RFC 8484 message format, and DNSSEC requests. It handles EDNS features such as client subnet, cookies and TCP keepalive, and it can sign zone updates and transfers with TSIG and SIG(0). A separate Updater class handles dynamic DNS updates, and a Notifier class sends DNS notify messages. A local cache can use shared memory, a flat file, Memcached or Redis. Namespaces and PSR-4 autoloading follow modern PHP conventions. The library requires PHP 8.1 or later, and OpenSSL, cURL and Hash are optional depending on the features you use. It is installed with Composer using the package name mikepultz/netdns2, and the source and changelog are on GitHub.…
Highlights
- Pure PHP DNS resolver
- DNS over TLS and DNS over HTTPS
- Dynamic DNS updates with TSIG and SIG(0)
- DNSSEC and EDNS support
- Local cache using Redis, Memcached or files
Ratings & Reviews
No ratings yet
Be the first to rate Netdns2.
People also visit
Routedns
DNS stub resolver, proxy and router with support for DoT, DoH, DoQ, and DTLS
Netdns2 FAQ
What is NetDNS2?
It is a pure PHP library for DNS resolution and dynamic DNS updates, with support for modern protocols such as DNS over TLS and DNS over HTTPS.
How do I install it?
Install it with Composer using composer require mikepultz/netdns2, or copy it from GitHub.
What does it need?
PHP 8.1 or newer. OpenSSL, cURL and Hash are optional and needed for specific features.
Is it free?
The source code is on GitHub, and the project is published as open source.
What are the best Netdns2 alternatives?
Popular alternatives to Netdns2 include Knot Resolver, SDNS and Routedns. See all Netdns2 alternatives
