NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #316 most downloaded on Packagist
Async DNS resolution for Amp.
Latest stable
v2.4.2
Last release 22 days ago
31 Oct 2026
Ships unpredictably
gaps range from 1 weeks to 1.5 years
Most releases are documented
notes for 37 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
75 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Normalize missing DNS server ports to 53 by @yankewei in https://github.com/amphp/dns/pull/124
Full Changelog: https://github.com/amphp/dns/compare/v2.4.1...v2.4.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed cancellation of a query cancelling all outstanding queries for the same name
Full Changelog: https://github.com/amphp/dns/compare/v2.4.0...v2.4.1
Full Changelog: v2.4.0...v2.4.1
Replaced WMIC nameserver lookup with PowerShell equivalent by @Bilge in https://github.com/amphp/dns/pull/116
Full Changelog: https://github.com/amphp/dns/compare/v2.3.0...v2.4.0
Replaced Windows registry lookup with WMIC process invocation by @Bilge in https://github.com/amphp/dns/pull/115
Full Changelog: https://github.com/amphp/dns/compare/v2.2.0...v2.3.0
Full Changelog: v2.2.0...v2.3.0
Fixed support for docker 26+ by @xtrime-ru in https://github.com/amphp/dns/pull/118
StaticDnsConfigLoaderFull Changelog: https://github.com/amphp/dns/compare/v2.1.2...v2.2.0
StaticDnsConfigLoaderFull Changelog: v2.1.2...v2.2.0
Make implicit nullable types explicit to avoid deprecation notice in PHP 8.4.
Full Changelog: https://github.com/amphp/dns/compare/v2.1.1...v2.1.2
Full Changelog: v2.1.1...v2.1.2
Corrected error message unit scale (ms -> seconds) by @Bilge in https://github.com/amphp/dns/pull/113
Full Changelog: https://github.com/amphp/dns/compare/v2.1.0...v2.1.1
Full Changelog: v2.1.0...v2.1.1
Fixed name resolution when NDots > 1
Cancellation arguments to Amp\Dns\query() and Amp\Dns\resolve().Full Changelog: https://github.com/amphp/dns/compare/v2.0.1...v2.1.0
Cancellation arguments to Amp\Dns\query() and Amp\Dns\resolve().Full Changelog: v2.0.1...v2.1.0
Fix fallback to blocking resolver by @danog and @kelunik in https://github.com/amphp/dns/pull/108 and https://github.com/amphp/dns/pull/109
9d988e317344ccebFull Changelog: https://github.com/amphp/dns/compare/v2.0.0...v2.0.1
9d988e317344ccebFull Changelog: v2.0.0...v2.0.1
Stable release compatible with AMPHP v3 and fibers! 🎉
Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.
Resolver to DnsResolverresolver() to dnsResolver()Config to DnsConfigConfigLoader to DnsConfigLoaderUnixConfigLoader to UnixDnsConfigLoaderWindowsConfigLoader to WindowsDnsConfigLoaderRecord to DnsRecordNoRecordException to MissingDnsRecordExceptionTimeoutException to DnsTimeoutExceptionConfigException to DnsConfigExceptionCancellation parameter to DnsResolver methodsFixed potential double resolution of a deferred if a DNS query timed out.
Added compatibility with Revolt v1.x
Cancellation parameter to Resolver methodsConfig to DnsConfigConfigLoader to DnsConfigLoaderUnixConfigLoader to UnixDnsConfigLoaderWindowsConfigLoader to WindowsDnsConfigLoaderFixed preference to IPv4 instead of relying on the first response from the DNS server. This restores the behavior of v1.x. Systems without IPv6 connec
Update to revolt/event-loop 0.2.x
revolt/event-loop 0.2.xRemoved promises in favor of fibers.
Increase minimum version to PHP 7.1
Full Changelog: https://github.com/amphp/dns/compare/v1.2.3...v1.2.4
Full Changelog: v1.2.3...v1.2.4
Improved error message if no response was received
Fixed resolving domains with search list and ndots > 1
Fixed resolving dotless host names without search option, e.g. Docker containers (#93, #94)
search option, e.g. Docker containers (#93, #94)Added support for search list and ndots option
Thanks to @brzuchal for implementing these features.
Provide blocking fallback if config cannot be loaded
Improved localhost handling in edge cases
localhost handling in edge casesnormalizeName() to allow underscoresBasicResolver to Rfc1035StubResolverdriver() to createDefaultResolver()ResolutionException, catch DnsException insteadInvalidNameErrorFix empty resolution result on too many redirects
Removed amphp/file and amphp/uri dependencies. Host file loading is now done with a synchronous read by default. We felt an asynchronous read was not
amphp/file and amphp/uri dependencies. Host file loading is now done with a synchronous read by default. We felt an asynchronous read was not necessary for what should be a local file that is (generally) read only once. Async reading can be restored if desired by extending HostLoader and overloading readFile().isValidName() and normalizeName().Use ext-filter instead of error suppression
ext-filter instead of error suppression (#73)Fixed decoding of empty domain names (#53).
Limit cache size by default to 256 cache entries (#65).
amphp/file v0.3.x as dependency.Fixed cyclic reference within BasicResolver->gcWatcher (#68).
BasicResolver->gcWatcher (#68).Prevent UDP sockets from leaking and close sockets on timeouts.
Fixed BasicResolver::resolve() always returning records without a TTL, due to querying the same domains five times instead of breaking a loop.
BasicResolver::resolve() always returning records without a TTL, due to querying the same domains five times instead of breaking a loop.Record::getName().Fix issue with custom ConfigLoader instances passed to BasicResolver.
Fix up previous attempt to not load the configuration concurrently.
Fixed config loading to only attempt one load concurrently. Previously it could result in a lot of file I/O, because a lot of DNS requests at the begi
/etc/hosts and /etc/resolv.conf.Implement proper fix for the OPCache issue. The previous fix was incomplete and only worked for some situations.
Added work around OPCache issue
Nothing published for this version
Implemented security measures to better prevent DNS cache poisoning (DNS spoofing) attacks on vulnerable networks:
Nothing published for this version
Fixed caching. Previously it accidentally used the query type instead of the TTL as TTL, which means that A records were only cached for one second an
A records were only cached for one second and other records not much longer.Search for DhcpNameServer in interfaces on Windows
- Fix custom name server parsing
Add Windows system config support
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fixed IPv6 nameservers in resolv.conf
resolv.confFixed defaults nameservers used on Windows.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.