https://github.com/paravibe/dnslookup
https://github.com/paravibe/dnslookup
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/paravibe/dnslookup
- Owner: paravibe
- License: mit
- Created: 2019-11-06T08:26:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-06T08:32:06.000Z (over 6 years ago)
- Last Synced: 2025-07-14T02:04:31.728Z (12 months ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### WhoisXMLAPI DNS Lookup API PHP wrapper
Provides simple wrapper for [WhoisXMLAPI](https://dns-lookup-api.whoisxmlapi.com/docs) API.
[](https://packagist.org/packages/paravibe/dnslookup)
### Examples
Resolve a DNS record.
```php
$client = new Client();
$client->setToken($token);
$request = new Request($client);
$request->setQuery(['type' => 'A']);
$response = $request->request($domain);
$data = json_decode($response->getBody(), TRUE);
```
Please note. This wrapper doesn't provide any custom exception handlers.