Network tools Library for PHP with native Yggdrasil / IPv6 support
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 35c150a77a update readme 1 year ago
src initial commit 1 year ago
.gitignore initial commit 1 year ago
LICENSE Initial commit 1 year ago
README.md update readme 1 year ago
composer.json initial commit 1 year 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')
);