Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
Native PHP DNS Client Resolver. Request DNS Record via UDP/TCP (RFC1035)
License
NotificationsYou must be signed in to change notification settings
ArrayAccess/DNS-Client
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Native Php DNS Client / Resolver implementation ofRFC 1035.SupportPSR-6: Caching Interface.
Php 8.1or later- Function
focksopenenabled & allowed outbound connection to port53 - Network Connectivity (Absolutely!)
Currently, in development:
composer require arrayaccess/dns-client
useArrayAccess\DnsRecord\Cache\Adapter\Psr6CacheAdapter;useArrayAccess\DnsRecord\DnsServerStorage;useArrayAccess\DnsRecord\Resolver;$cache =newPsr6CacheAdapter();// $cache->setCacheItemPool($cacheProvider);$dnsServer = DnsServerStorage::createDefault();$resolver =newResolver($dnsServer,$cache);/** * Lookup Single */$useCache =true;// default to true$timeout =3.5;// 3.5 seconds$response =$resolver->lookup('domain-name.ext','A','IN',$timeout,$useCache);/** * Enable Pseudo OPT */$resolver->setDnsSec(true);$response =$resolver->lookup('domain-name.ext','A','IN');$answers =$response->getAnswers();$records =$answers->getRecords();// Filter "A" Address Only$arrayA =$records->getFilteredType('A');
IXFR & AXFR aren't fully implemented yet
About
Native PHP DNS Client Resolver. Request DNS Record via UDP/TCP (RFC1035)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.