|
|
|
@ -9,6 +9,7 @@ DNS Library for PHP with native Yggdrasil support
@@ -9,6 +9,7 @@ DNS Library for PHP with native Yggdrasil support
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
|
|
### Resolve records |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
var_dump( |
|
|
|
|
\Yggverse\Dns\Dig::records('yo.index', ['A', 'AAAA']) |
|
|
|
@ -17,18 +18,24 @@ var_dump(
@@ -17,18 +18,24 @@ var_dump(
|
|
|
|
|
|
|
|
|
|
## 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') |
|
|
|
|
); |
|
|
|
|
``` |