Skip to content

Node script to synchronise the DNS records from BIND zone files with DigitalOcean's DNS servers.

License

Notifications You must be signed in to change notification settings

threesquared/digitalocean-dns-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digitalocean-dns-sync

DigitalOcean provide an awesome DNS service. But do not allow AXFR zone transfers. So if you want to use it as a secondary DNS server you need to create the zones manually. This script will parse BIND zone files and then re-create the records with the DigitalOcean API.

Requests to the API are limited to one every 500ms to avoid hammering.

Usage

You need to supply your API token, the IP address of your server and then a glob pattern to match for files.

./digitalocean-dns-sync <API-TOKEN> 178.0.0.1 *.zone

Credit

This is just a Javascript rewrite of https://github.com/HiddenClever/digitalocean-dns-sync

About

Node script to synchronise the DNS records from BIND zone files with DigitalOcean's DNS servers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published