Node's Personal Monk

    @tryghost/dns

    0.4.1 • 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.

    Keywords

    none

    Install

    npm i @tryghost/dns

    DownloadsWeekly Downloads

    89

    Version

    0.4.1

    License

    MIT

    Unpacked Size

    20.1 kB

    Total Files

    18

    Last publish

    Collaborators

    • jonhickman
    • dylansharp
    • isabelfisher
    • lenabaidakova
    • kernalghost
    • hadret
    • minimaluminium
    • ronaldlangeveld
    • simonbackx
    • moreofmorris
    • joeegrigg
    • sanne-san
    • djordjevlais
    • bobvaneck
    • zimoatghost
    • allouis
    • gargol
    • rishabhgrg
    • erisds
    • johnonolan
    • kevinansfield
    • cobbspur
    • aileencgn
    • jloh
    • daniellockyer
    • sam-lord
    • pauladamdavis