@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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.0
    396
    • latest

Version History

Package Sidebar

Install

npm i @tryghost/dns

Weekly Downloads

353

Version

0.5.0

License

MIT

Unpacked Size

19.9 kB

Total Files

17

Last publish

Collaborators

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