@tryghost/dns

0.5.0 • Public • Published

DNS

Lookup DNS info for a domain.

Usage: yarn dns <blog.ghost.org> Outputs:

{
   "hostname": "blog.ghost.org",
   "domain": "ghost.org",
   "subdomain": "blog",
   "records": {
        "A": [{"value": "104.16.127.190", "cf": true}, {}],
        "CNAME": [],
        "NS": ["sara.ns.cloudflare.com.", "woz.ns.cloudflare.com."],
   },
   "whois": "Cloudflare",
   "cloudflare": true,
   "valid": {
        "cname": "maybe",
        "ssl": "C",      
   }     
}

Installation

  1. Make sure that gstenv is green. See Dev Environment for docs.
  2. git clone this repo & cd into it as usual
  3. Run yarn to install top-level dependencies.

Run

  • Run: yarn dns <url>
  • Aliased as yarn dev <url> for consistency
  • Doesn't matter which you run!

Test

  • yarn lint run just eslint
  • yarn test run lint && tests

Publish

  • yarn ship

Copyright & License

Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license. Ghost and the Ghost Logo are trademarks of Ghost Foundation Ltd. Please see our trademark policy for info on acceptable usage.

Readme

Keywords

none

Package Sidebar

Install

npm i @tryghost/dns

Weekly Downloads

331

Version

0.5.0

License

MIT

Unpacked Size

19.9 kB

Total Files

17

Last publish

Collaborators

  • zimoatghost
  • allouis
  • kernalghost
  • sanne-san
  • chrisraible
  • erisds
  • johnonolan
  • kevinansfield
  • cobbspur
  • aileencgn
  • jloh
  • daniellockyer
  • minimaluminium
  • sam-lord
  • pauladamdavis
  • bobvaneck
  • joeegrigg
  • djordjevlais
  • ronaldlangeveld
  • hadret
  • jonhickman
  • erik-ghost
  • sagzy
  • dvdwinden
  • vershwal
  • mike182uk
  • 9larsons
  • lsinger