linode-dns-tools
v0.1.3
Published
Tools to update your Linode DNS entries via the Linode API.
Downloads
10
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
npm 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
linode-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
linode-change-ip --old=1.1.1.1 --new=2.2.2.2
Optionally you can do this for just one domain:
linode-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.
linode-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.