web-api/README.md
2023-12-15 20:28:20 +02:00

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
```