PHP code example of supersem / fetch-dns-service
1. Go to this page and download the library: Download supersem/fetch-dns-service library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
supersem / fetch-dns-service example snippets
javascript
use Supersem\FetchDnsService\FetchDnsService;
$fetchDnsService = new FetchDnsService();
$result = $fetchDnsService->getDnsRecords("gmail.com");
print_r($result);
[
["type" => "A", "host" => "gmail.com", "ttl" => "3360", "ip" => "142.250.1.19"],
["type" => "TXT", "host" => "gmail.com", "ttl" => "18640", "txt" => "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="],
...
];