NetDNS2 is a pure-PHP DNS Resolver and Updater library designed to let PHP applications perform DNS queries and dynamic updates without relying on external commands or libraries such as nslookup, dig, bind, or libresolv. It runs on platforms supported by PHP, including *NIX and Windows, and has been used by projects such as Generator Labs Blacklist Monitoring, Horde Groupware Project, and cPanel.
In terms of feature coverage, NetDNS2 is closer to a full DNS protocol toolkit than a simple query wrapper. It supports IPv4, IPv6, UDP, TCP, and TLS sockets, as well as DNS over TLS and DNS over HTTP based on RFC 8484 application/dns-message. It also covers DNSSEC requests and resource records, EDNS(0) capabilities such as client subnet, cookies, and TCP keepalive. In addition, it supports TSIG and SIG(0) for signing updates and zone transfers, and provides a dedicated Updater class for dynamic DNS updates plus a Notifier class for sending DNS notification messages.
The library is built for PHP and currently requires PHP 8.1+. It uses modern PHP features such as strict typing and ENUM. Installation is straightforward: you can run composer require mikepultz/netdns2 via Composer, or obtain it from GitHub. For caching, it supports shared memory, flat files, Memcached, and Redis. DoT depends on OpenSSL, DoH depends on cURL, and DNSSEC ED25519-related functionality can rely on Sodium. This means the core library is easy to integrate, but the full feature set depends on the available PHP extension environment.
The main text does not mention commercial pricing or paid plans. Given its distribution through Composer and GitHub, it is best evaluated as an open-source library. The website provides an overview of key features, installation requirements, and a changelog entry point, and points users to the GitHub README for usage details. However, the crawled page contains relatively few code examples or API explanations, so deeper usage still requires consulting the repository documentation.
Its strengths are that it is pure PHP, broadly compatible across platforms, and offers wide protocol coverage, including DoH, DoT, DNSSEC, dynamic updates, and multiple cache backends. The limitations are its relatively high PHP 8.1+ requirement, which may add migration cost for older projects; some advanced features depend on extensions; and there is no visible information about enterprise support or SLA. It is a good fit for teams building PHP backends, operations platforms, monitoring systems, email security tools, or domain management tools that need to handle DNS directly.
The source text does not provide information about mainland China access, mirrors, payment, or service availability, so its China accessibility status is unknown. Since it can be obtained through Composer/GitHub, real-world availability may depend on GitHub, Packagist, and the local network environment. If access is unstable, users can consider using a domestic Composer mirror or evaluating PHPβs native dns_get_record and other DNS libraries as alternatives.
β This review is compiled from public sources and does not constitute a purchase recommendation. Verify all facts on the vendor's official site. Verify on netdns2.com official site.
netdns2.com is an Unknown Dev Tools provider. TG4G tracks its product information, an overall rating of 7.0/10, and a China-accessibility score of China direct-connect friendly. Click "Visit Official Site" to reach netdns2.com directly.