Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dnsify

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnsify

DNS config in markdown

  • 0.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

dnsify - Simplify your dns config

A human friendly format for defining and documenting and your DNS config and a tool for verifying and applying it to your friendly dns service provider.

e.g tableflip.io.dns.md

## Origin: tableflip.io

name       | type | data
-----------|------|---------------
@ www blog | A    | 178.62.82.182
@          | MX   | mx-{1,3}.rightbox.com:10

Why

  • Documentation is the config.
  • Reduce the repetition (looking at you zonefiles, OMG)
  • Prefer readability over opaque terseness (tinydns, I <3 you, but why you make me RTFM every time?)

What

  • Convert a Markdown table to an "Abstract Zone File" object
  • Merge multiple tables into one zone object
  • Understand shell style brace expansions {1,2}.foo.com => 1.foo.com 2.foo.com
  • Output a zonefile or JSON

Usage

dnsify examples/tableflip.io.dns.md

$ORIGIN tableflip.io.
$TTL 1h
@    IN A  178.62.82.182
www  IN A  178.62.82.182
@    IN MX 10 mx-1.rightbox.com.
...

dnsify examples/tableflip.io.dns.md --json

{
  "origin": "tableflip.io",
  "ttl": "1h",
  "records" : [
    {
      "type": "A",
      "name": "@",
      "data": "178.62.82.182"
    }
  ]
}

Examples

examples/zone-file-style.dns.md

Origin: tableflip.io

The no frills "DNS Zone file as markdown table" style

nametypedata
@A178.62.82.182
wwwA@
blogA@
nextA212.110.189.58
@MXmx-1.rightbox.com:10
@MXmx-2.rightbox.com:10
@MXmx-3.rightbox.com:10
@TXTv=spf1 include:_spf.google.com include:_spf.freeagent.com ~all

examples/dry-style.dns.md

Origin: tableflip.io

DRY style. Order the columns however you like, Multiple tables are merged, lists are expanded. The result is the same as the previous example

datatypename
178.62.82.182A@ www blog
212.110.189.58Anext
typedata
MXmx-{1,2,3}.rightbox.com:10
TXTv=spf1 include:_spf.google.com include:_spf.freeagent.com ~all

Keywords

FAQs

Package last updated on 18 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc