Download the PHP package jeeven/dnslookup without Composer
On this page you can find all versions of the php package jeeven/dnslookup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeeven/dnslookup
More information about jeeven/dnslookup
Files in jeeven/dnslookup
Package dnslookup
Short Description A simple Laravel package to perform DNS lookups (A, AAAA, MX, NS, TXT, CNAME, SOA, etc.) using Google's DNS-over-HTTPS (DoH) resolver.
License MIT
Homepage https://github.com/MacAlistair1/Dns-lookup
Informations about the package dnslookup
jeeven/dnslookup
A simple Laravel package for looking up DNS records (A, AAAA, MX, NS, TXT, CNAME, SOA, CAA, ...) for any domain, using Google's DNS-over-HTTPS (DoH) JSON API.
Requirements
- PHP 7.4 – 8.3+ (works across the range)
- Laravel 7 – 13 (works across the range; Laravel itself dictates which PHP version pairs with which Laravel version — e.g. Laravel 13 requires PHP 8.3+, older Laravel versions run fine on PHP 7.4)
Installation
Laravel auto-discovers the service provider and DnsLookup facade. If you've disabled package auto-discovery, register manually in config/app.php:
Optionally publish the config file:
This creates config/dnslookup.php:
Usage
Facade
Each call above returns something like:
Any record type
Just the values
Multiple record types at once
Existence / status checks
Raw response
If you need the full raw resolver payload (Status, Question, Answer, Authority, Comment):
Dependency injection
Artisan command
Example output:
Caching
Lookups are cached for 5 minutes by default (configurable via DNSLOOKUP_CACHE_TTL / config/dnslookup.php) to avoid repeated calls to the resolver for the same domain/type. Disable with DNSLOOKUP_CACHE_ENABLED=false.
Testing
Tests use Http::fake(), so no real network calls are made.
License
MIT
All versions of dnslookup with dependencies
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0