Skip to content

abbassiddiqi/whoispk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whoispk

npm version npm Build Status MIT license

Issue WHOIS lookup for PKNIC (.pk) domain names from the command line.

Installation

Global

npm install -g whoispk

Usage

whoispk [options] address

Options:
  -V, --version  output the version number
  -h, --help     output usage information

Local

npm install whoispk

Usage

const whoispk = require('whoispk');

whoispk.lookup('daraz.pk', function (err, domainInfo) {

  if (err) {
    throw err;
  }

  if (domainInfo.isFound) {
    console.log(domainInfo.data);
  } else {
    console.log('Domain not Found');
  }

});

or using ES6 Promises:

const whoispk = require('whoispk');

whoispk
  .lookup('daraz.pk')
  .then(function (domainInfo) {

    if (domainInfo.isFound) {
      console.log(domainInfo.data);
    } else {
      console.log('Domain not Found');
    }
  })
  .catch(function (err) {
    throw err;
  });

The console will show following information if domainInfo.isFound is true:

{
  domain_name: 'daraz.pk',
  registrant: 'Jade E Services Pakistan {Pvt} Limited',
  address: 'Clifton Karachi; South Sindh 75600Pakistan',
  create_date: 'May 14, 2012',
  expire_date: 'May 14, 2018',
  agent_org: 'iS-Fun Internet Services GmbH',
  technical_contact: [
    'Jade E Services Pakistan {Pvt} Limited',
    'Raja Muneeb Idrees M Admin',
    'Clifton, Karachi; South Sindh75600'
  ],
  billing_contact: [
    'iS-Fun Internet Services GmbH',
    'Robin Fundinger',
    'Karlsbad, 76307'
  ],
  nameservers: [
    'kip.ns.cloudflare.com',
    'naomi.ns.cloudflare.com'
  ]
}

Source of information: http://pknic.net.pk

Contributing

  • Discuss ideas in issues section
  • Spread the word

License

whoispk is available under the MIT license.

About

A robust WHOIS client (command-line tool) for PKNIC (.pk) domains.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published