2017 © Pedro Peláez
 

library dnsparser

Preferm DNS lookups for domains

image

whoisdoma/dnsparser

Preferm DNS lookups for domains

  • Monday, June 5, 2017
  • by xaoseric
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Whoisdoma DNS Parser

Lookup dns records for domains, (*1)

Copyright (c) 2016 XAOS Interactive (http://xaosia.com) | Whoisdoma (http://whoisdoma.com), (*2)

Licensed under the MIT License (the "License")., (*3)

Installation

Installing using composer:, (*4)

composer require whoisdoma/dnsparser
composer require whoisdoma/domainparser

Installing from source: git clone git://github.com/Whoisdoma/DNSParser.git or download the latest release, (*5)

See Whoisdoma Domain Parser (http://github.com/Whoisdoma/DomainParser) or download the latest release and install it as well., (*6)

Move the source code to your preferred project folder., (*7)

Usage

  • Include Parser.php
require_once 'DomainParser/Parser.php';
require_once 'DNSParser/Parser.php';
  • or if using composer:
use Whoisdoma\DomainParser\Parser as DomainParser;
use Whoisdoma\DNSParser\Parser as DNSParser;
  • Create Parser() object
$Parser = new Whoisdoma\DNSParser\Parser();
  • Call lookup() method
$result = $Parser->lookup($domain);
  • Access DNS record, the object oriented way.
echo $result->created; // get create date of domain name
print_r($result->rawdata); // get raw output as array
  • You may choose 5 different return types. the types are array, object, json, serialize and xml. By default it is object. If you want to change that call the format method before calling the parse method or provide to the constructer.
$Parser->setFormat('json');
$Parser = new Whoisdoma\DNSParser\Parser('json');
  • You may set your own date format if you like. Please check http://php.net/strftime for further details
$Parser->setDateFormat('%d.%m.%Y %H:%M:%S');

ToDos

  • Caching of data for better performance and to reduce requests
  • Change HTTP Adapter to use GET/POST
  • Change Socket Adapter to be able to use Socks to split requests.

Known bugs to be fixed in further versions

3rd Party Libraries

We are using our own Domain Parser: * Whoisdoma: http://github.com/Whoisdoma/DomainParser (Version 1.0.0 and above), (*8)

ChangeLog

See ChangeLog at https://github.com/Whoisdoma/DNSParser/blob/master/CHANGELOG.md, (*9)

Issues

Please report any issues via https://github.com/Whoisdoma/DNSParser/issues, (*10)

Copyright (c) 2016 XAOS Interactive (http://xaosia.com) | Whoisdoma (http://whoisdoma.com), (*11)

License: https://github.com/Whoisdoma/DNSParser/blob/master/LICENSE, (*12)

The Versions

05/06 2017

dev-master

9999999-dev https://github.com/Whoisdoma/DNSParser/

Preferm DNS lookups for domains

  Sources   Download

MIT

The Requires

 

php dns whois dnsparser domain dns