punkave/linode-dns-tools

Name: linode-dns-tools

Owner: P'unk Avenue

Description: Power tools for the linode DNS API. Import a zone file, globally replace an IP address, etc.

Created: 2015-01-31 22:29:18.0

Updated: 2018-03-27 17:58:52.0

Pushed: 2015-02-03 21:25:30.0

Homepage: null

Size: 160

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

linode-dns-tools

A collection of tools for the linode DNS API.

Requirements

You must provide your linode API key, which you can generate via your linode profile. If there is a .linode-key file in the current directory, it is used, otherwise the .linode-key file in your home directory is used.

Installation
install -g linode-dns-tools

The tools

linode-import-zone-file

Imports bind-style DNS zone files via the Linode API. Very useful if you've exported one from another hosting service that won't allow Linode's automatic zone export feature.

Usage
de-import-zone-file zonefile

It takes a little time depending on how many records you have.

TODO: currently no support for SRV records. Pull requests welcome.

Note that if an error is reported, no records beyond that point are imported.

Runs quietly if nothing is wrong. Use --verbose for detailed output.

linode-change-ip

Globally replace an IP address in all of your domains, or one particular domain. Very useful when you replace a server.

Usage
de-change-ip --old=1.1.1.1 --new=2.2.2.2

Optionally you can do this for just one domain:

de-change-ip --old=1.1.1.1 --new=2.2.2.2 --domain=mycompany.com

Runs quietly if nothing is wrong. Use --verbose for detailed output.

linode-add-record

A simple utility to add a new record.

de-add-record --domain=foo.com --type=a --name=bar --target=1.2.3.4

Currently does not support record types that require more than just a name and target. Pull requests always welcome.

About P'unk Avenue and Apostrophe

linode-dns-tools was created at P'unk Avenue to support our work on Apostrophe, an open-source content management system built on node.js. If you like linode-dns-tools you should definitely check out apostrophenow.org. Also be sure to visit us on github.

Support

Feel free to open issues on github.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.