mirror of
https://github.com/YGGverse/web-api.git
synced 2026-03-31 17:45:30 +00:00
initial commit
This commit is contained in:
parent
636b40bd86
commit
6bbe001254
5 changed files with 187 additions and 0 deletions
32
README.md
32
README.md
|
|
@ -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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue