mirror of https://github.com/YGGverse/net-php.git
composernetworkipv6network-apiipv4dnsdns-resolver-apiphp-resolverdignet-phpdns-php-libraryphp-digdns-php
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghost
df3342fc4b
|
11 months ago | |
---|---|---|
src | 11 months ago | |
.gitignore | 11 months ago | |
LICENSE | 11 months ago | |
README.md | 11 months ago | |
composer.json | 11 months ago |
README.md
dns-php
DNS Library for PHP with native Yggdrasil support
Install
composer require yggverse/dns
Usage
Resolve records
var_dump(
\Yggverse\Dns\Dig::records('yo.index', ['A', 'AAAA'])
);
Check hostname valid
var_dump( \Yggverse\Dns\Dig::isHostName('yo.index') );
Check record valid
var_dump( \Yggverse\Dns\Dig::isRecord('A') );
Check record value valid
var_dump( \Yggverse\Dns\Dig::isRecordValue('A', '127.0.0.1') );