Coder Social home page Coder Social logo

whoisquery's Introduction

WhoisQuery V1.2

get whois query and parse its records simply in php 7

How to use it

<?php
  $whois=new WhoisQuery('google.com');
  $result = $whois->query();
  print_r($result);
  print_r($whois->errors);
?>

how to get results

 Array
(
    [domain] => Array
        (
            [0] => google.com
        )

    [id] => Array
        (
            [0] => 2138514_DOMAIN_COM-VRSN
        )

    [whois_server] => Array
        (
            [0] => whois.markmonitor.com
        )

    [registrar_url] => Array
        (
            [0] => http//www.markmonitor.com
        )

    [updated_at] => Array
        (
            [0] => 2019-09-09T083904-0700
        )

    [created_at] => Array
        (
            [0] => 1997-09-15T000000-0700
        )

    [expired_at] => Array
        (
            [0] => 2028-09-13T000000-0700
        )

    [registrar] => Array
        (
            [0] => MarkMonitor, Inc.
        )

    [status] => Array
        (
            [0] => clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited)
            [1] => clientTransferProhibited (https://www.icann.org/epp#clientTransferProhibited)
            [2] => clientDeleteProhibited (https://www.icann.org/epp#clientDeleteProhibited)
            [3] => serverUpdateProhibited (https://www.icann.org/epp#serverUpdateProhibited)
            [4] => serverTransferProhibited (https://www.icann.org/epp#serverTransferProhibited)
            [5] => serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited)
        )

    [holder_org] => Array
        (
            [0] => Google LLC
        )

    [holder_province] => Array
        (
            [0] => CA
        )

    [holder_country] => Array
        (
            [0] => US
        )

    [holder_email] => Array
        (
            [0] => Select Request Email Form at https//domains.markmonitor.com/whois/google.com
        )

    [admin] => Array
        (
            [0] => Select Request Email Form at https//domains.markmonitor.com/whois/google.com
        )

    [tech] => Array
        (
            [0] => Select Request Email Form at https//domains.markmonitor.com/whois/google.com
        )

    [name_server] => Array
        (
            [0] => ns3.google.com
            [1] => ns1.google.com
            [2] => ns2.google.com
            [3] => ns4.google.com
        )

    [dns_security] => Array
        (
            [0] => unsigned
        )

)
Array
(
)

list of all whois result field

field description
id domain id
domain domain name
name_server list of name server
registrar registrar name
registrar_url registrar url
sponsoring_registrar sponsoring registrar
whois_server registrar whois server
created_at domain registration date
updated_at domain last updated date
expired_at domain expiration date
status domain status
holder_name domain holder person name
holder_address domain holder address
holder_email domain holder email address
holder_phone domain holder phone number
holder_fax domain holder fax number
holder_org domain holder organization
holder_country domain holder country
holder_city domain holder city
holder_province domain holder state/province
admin administrative contact
tech technical contact
bill billing contact
dns_security Domain Name System Security Extensions

How to help me!

you can test it by different domain TLDs and if a record not parsed or occurs any errors, then just report to fix it! Thanks :)

whoisquery's People

Contributors

madkne avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.