Test Task Package
For using this sophisticated package you should:
-
Add dependency with composer
composer require mosx/dnsinfo-service
-
Install dependency composer install
-
require_once("vendor/autoload.php"); If you did not do it already
-
connect it with
use MosxTech\DnsInfoService\DnsInfoService;
-
Create instance of the object and use its functionality )
$dns = new DnsInfoService(); $result = $dns->getDnsInfo('google.com');
-
In result you will get an array with data