mirror of
https://github.com/YGGverse/web-api.git
synced 2026-04-01 01:55:30 +00:00
34 lines
No EOL
335 B
Markdown
34 lines
No EOL
335 B
Markdown
# dns-api
|
|
|
|
Simple DNS API
|
|
|
|
## Install
|
|
|
|
```
|
|
git clone https://github.com/YGGverse/dns-api.git
|
|
cd dns-api
|
|
composer install
|
|
```
|
|
|
|
## Run
|
|
|
|
```
|
|
cd src/public
|
|
php -S localhost:8080
|
|
```
|
|
|
|
## Usage
|
|
|
|
### Dig
|
|
|
|
#### Single record
|
|
|
|
```
|
|
dig.php?name=php.net&record=A
|
|
```
|
|
|
|
#### Multiple records
|
|
|
|
```
|
|
dig.php?name=php.net&records[]=A&records[]=AAAA
|
|
``` |