spatie/dns
Fetch DNS records in PHP using dig. Query domains for A, AAAA, CNAME, MX, TXT, SRV and more, filter by type(s), and get structured record objects with handy accessors for record details.
SRV, CNAME).TXT for security policies, CAA for certificate authority restrictions) to meet regulatory requirements.Adopt if:
dig fallback to dns_get_record() if dig is unavailable).A, MX, TXT).Look elsewhere if:
dns.resolver).dig or dns_get_record()).dnsenum or massdns).dig (e.g., restricted servers; fallback to dns_get_record() may suffice).For Executives: *"This package lets us automate DNS validation and monitoring without building custom parsers. For example, we can:
For Engineers:
*"Spatie’s dns package gives us:
$dns->getRecords('example.com', 'MX')).dig for a custom resolver).dig (fallback to dns_get_record() if unavailable)."*How can I help you explore Laravel packages today?