mirror of
https://github.com/YGGverse/web-api.git
synced 2025-03-12 21:41:17 +00:00
net-api
Simple Network Tools API
Install
git clone https://github.com/YGGverse/net-api.git
cd net-api
composer install
Run
cd src/public
php -S localhost:8080
Usage
Socket
Check socket
Usage
port
requiredhost
optional, name, IPv4 or IPv6REMOTE_ADDR
by default
GET socket.php?port=80&host=php.net
Response
JSON
{
status: bool
}
Dig
Show host records
Usage
name
required host name, IPv4 or IPv6record
required ifrecords
not providedrecords
required ifrecord
not provided- A
- AAAA
- SRV #1
Single record
GET dig.php?name=php.net&record=A
Multiple records
GET dig.php?name=php.net&records[]=A&records[]=AAAA
Response
JSON
{
status: bool
records: array
}
Languages
PHP
100%