@tryghost/dns
v0.5.0
Published
Lookup DNS info for a domain.
Downloads
1,471
Maintainers
Keywords
Readme
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
- Make sure that
gstenv
is green. See Dev Environment for docs. git clone
this repo &cd
into it as usual- 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 eslintyarn 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.