'chanshige/dig' is that helps registered domain name servers and zone of authority record dig lookup.

v2.0.0 2020-07-28 21:58 UTC

This package is auto-updated.

Last update: 2024-04-29 04:27:04 UTC


README

Packagist Build Status Coverage Status

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

Author

chanshige