Browse Source

update readme

main
ghost 1 year ago
parent
commit
35c150a77a
  1. 7
      README.md

7
README.md

@ -9,6 +9,7 @@ DNS Library for PHP with native Yggdrasil support
## Usage ## Usage
### Resolve records ### Resolve records
``` ```
var_dump( var_dump(
\Yggverse\Dns\Dig::records('yo.index', ['A', 'AAAA']) \Yggverse\Dns\Dig::records('yo.index', ['A', 'AAAA'])
@ -17,18 +18,24 @@ var_dump(
## Check hostname valid ## Check hostname valid
```
var_dump( var_dump(
\Yggverse\Dns\Dig::isHostName('yo.index') \Yggverse\Dns\Dig::isHostName('yo.index')
); );
```
## Check record valid ## Check record valid
```
var_dump( var_dump(
\Yggverse\Dns\Dig::isRecord('A') \Yggverse\Dns\Dig::isRecord('A')
); );
```
## Check record value valid ## Check record value valid
```
var_dump( var_dump(
\Yggverse\Dns\Dig::isRecordValue('A', '127.0.0.1') \Yggverse\Dns\Dig::isRecordValue('A', '127.0.0.1')
); );
```
Loading…
Cancel
Save