0.0.0 • Published 10 years ago

powerdns v0.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

powerdns

Client for the PowerDNS REST interface.

Setup

var powerdns = require("powerdns");

var pdnsClient = powerdns("localhost", 8080);

API

The API supports both standard Node CPS (callbacks) and Promises.

For now, the API only handles dealing with the "localhost" server.

Server config

A specific key can be provided to obtain a particular value. If no key is provided, all config is returned.

pdnsClient.config(function(err, config) { console.log(config); // --> { "key": "value", "key2": "value2" } });

Zones config.