chanshige/dig
DNSレコード情報を調べることができます
※BINDのdnsutil(dig command)がインストールされている環境で実行できます。
Installation
With Composer
$ composer require chanshige/dig 'v2.0'
usage
<?php
use Chanshige\DigFactory;
$dig = (new DigFactory())->newInstance();
# Traversable
$result = $dig('shigeki.tokyo', 'any', '8.8.8.8');
# toArray
var_dump(iterator_to_array($result));
# show command line
echo $dig;
test (with output coverage reports)
$ composer test
License
MIT