initial commit

This commit is contained in:
ghost 2023-12-15 20:28:20 +02:00
parent 636b40bd86
commit 6bbe001254
5 changed files with 187 additions and 0 deletions

View file

@ -1,2 +1,34 @@
# 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
```