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 @@ -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')
);
```
Loading…
Cancel
Save