npm.io
0.0.0 • Published 12 years ago

powerdns

Licence
MIT
Version
0.0.0
Deps
0
Vulns
0
Weekly
0
Stars
1

powerdns

Client for the [PowerDNS REST interface][powerdns-rest-api].

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.

Keywords