NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2040 most downloaded on Packagist
Retrieve DNS records
Latest stable
2.10.0
Last release 24 days ago
29 Oct 2026
Release timing varies
gaps range from 9 days to 13 months
Nearly every release is documented
notes for 42 of 43 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
43 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Add opt-in Dns::throwOnErrorResponse() to distinguish DNS error responses such as REFUSED and SERVFAIL from empty answers when using dig.
Dns::throwOnErrorResponse() to distinguish DNS error responses such as REFUSED and SERVFAIL from empty answers when using dig.CouldNotFetchDns::$responseStatus. NOERROR and NXDOMAIN remain valid responses. An error for any requested record type makes the entire lookup throw.null).Thanks to @mattiasgeniar for the contribution in #128.
Full changelog: https://github.com/spatie/dns/compare/2.9.0...2.10.0
Update Pest and Pint, test PHP 8.4 and 8.5 against lowest/latest dependencies, and enforce deprecation-free tests.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Types::DNS_DS and Types::DNS_DNSKEY.DNS_ALL, and wildcard queries remain unchanged. The native PHP handler reports a clear error for these unsupported types.This is a feature release with no existing runtime API behavior changes. Projects using PHP 8.2 or 8.3 must upgrade PHP before installing this version.
Thanks to @bessone for the original contribution in #126, continued and refined in #127.
Full changelog: https://github.com/spatie/dns/compare/2.8.1...2.9.0
Support null MX and SRV records that use the root label by @mattiasgeniar in https://github.com/spatie/dns/pull/125
Full Changelog: https://github.com/spatie/dns/compare/2.8.0...2.8.1
Fix namespace typos in README.md by @bessone in https://github.com/spatie/dns/pull/122
Full Changelog: https://github.com/spatie/dns/compare/2.7.1...2.8.0
Update issue template by @AlexVanderbist in https://github.com/spatie/dns/pull/116
Full Changelog: https://github.com/spatie/dns/compare/2.7.0...2.7.1
Let users set a custom timeout or number of retries for the Dig handler by @Kovah in https://github.com/spatie/dns/pull/115
Full Changelog: https://github.com/spatie/dns/compare/2.6.0...2.7.0
Fix: TXT parsing by @SRWieZ in https://github.com/spatie/dns/pull/109
Full Changelog: https://github.com/spatie/dns/compare/2.5.6...2.6.0
Fix README.md by @lyrixx in https://github.com/spatie/dns/pull/107
Full Changelog: https://github.com/spatie/dns/compare/2.5.5...2.5.6
Allow Symfony 7.x by @thecaliskan in https://github.com/spatie/dns/pull/104
Full Changelog: https://github.com/spatie/dns/compare/2.5.4...2.5.5
Improve security by @freekmurze in https://github.com/spatie/dns/pull/103
Full Changelog: https://github.com/spatie/dns/compare/2.5.3...2.5.4
Add PHP 8.2 Support by @patinthehat in https://github.com/spatie/dns/pull/99
Full Changelog: https://github.com/spatie/dns/compare/2.5.2...2.5.3
allow to query NS on root or tld nameservers by @scuben in https://github.com/spatie/dns/pull/98
Full Changelog: https://github.com/spatie/dns/compare/2.5.1...2.5.2
Fix PTR property naming. by @lwohn in https://github.com/spatie/dns/pull/96
Full Changelog: https://github.com/spatie/dns/compare/2.5.0...2.5.1
Fix duplicated dig buildCommand by @0xb4lint in https://github.com/spatie/dns/pull/93
Full Changelog: https://github.com/spatie/dns/compare/2.4.7...2.5.0
Remove dd() by @jasonlfunk in https://github.com/spatie/dns/pull/91
Full Changelog: https://github.com/spatie/dns/compare/2.4.6...2.4.7
- improve error handling of dig Full Changelog: https://github.com/spatie/dns/compare/2.4.5...2.4.6
Full Changelog: https://github.com/spatie/dns/compare/2.4.5...2.4.6
Improved handling of errors when dns_get_record function fails. by @hostep in https://github.com/spatie/dns/pull/90
Full Changelog: https://github.com/spatie/dns/compare/2.4.4...2.4.5
fix test in windows by @ManojKiranA in https://github.com/spatie/dns/pull/85
Full Changelog: https://github.com/spatie/dns/compare/2.4.3...2.4.4
Fix Undefined constant DNS_CAA in windows platform by @ManojKiranA in https://github.com/spatie/dns/pull/84
Full Changelog: https://github.com/spatie/dns/compare/2.4.2...2.4.3
- make compatible with PHP 8.1 - add time and tries parameters
time and tries parametersAdded support for long TXT records (see rfc4408, section 3.1.3) by @hostep in https://github.com/spatie/dns/pull/81
Full Changelog: https://github.com/spatie/dns/compare/2.4.0...2.4.1
Add ability to use custom handlers by @freekmurze in https://github.com/spatie/dns/pull/78
Full Changelog: https://github.com/spatie/dns/compare/2.3.2...2.4.0
- fix macroable behaviour
- allow v1 of spatie/macroable
- make Record macroable
Record macroableUpdate change about php breaking compatibility by @camlafit in https://github.com/spatie/dns/pull/75
guess method by @freekmurze in https://github.com/spatie/dns/pull/77Full Changelog: https://github.com/spatie/dns/compare/2.1.1...2.2.0
ensure accessed indexes do exist
- Make records arrayable
always only return the requests record types
let getRecords return an array instead of a custom collection
getRecords return an array instead of a custom collectionadded support for multiple handlers
- add of method
of method- add noidnout
noidnoutdrop support for PHP 7.3 and below
resolve symfony/process deprecation
throw a custom exception when dig fails
- add CNAME and SRV record types
- fix tests - allow Symfony 4
- add support for CAA records
CAA records- add useNameserver
useNameserver- add getDomain
getDomain- initial release
Nothing published for this version
One column per quarter.