A client implementation for Rackspace Cloud DNS in node.js
An incomplete fork of nodejitsu's node-cloudfiles, ripped apart and refitted for Rackspace Cloud DNS API. WARNING: This could very well break your rackspace account, I am not responsible. Don't say I didn't warn you.
This module is not yet available via npm. (Comming soon)
The node-clouddns library is compliant with the Rackspace clouddns API. Using node-clouddns is easy for a variety of scenarios: authenticating, creating and working with both domains and DNS records.
Before we can do anything with clouddns, we have to create a client with valid credentials. clouddns will authenticate for you automatically:
var clouddns = ;var config =auth :username: 'your-username'apiKey: 'your-api-key';var client = clouddns;
All the expected CRUD methods that you would expect are available to the domain object We also have the ability to import and export BIND9 db files, check out the tests for more details
Updating and deleting can be done directly on the record objects, and bulk updates are done via the domain Again you should really run and read the tests, for more info
Use the 'host' key in the auth configuration to specify the url to use for authentication:
var clouddns = ;var config =auth :username: 'your-username'apiKey: 'your-api-key'host : "lon.auth.api.rackspacecloud.com";var client = clouddns;
All of the node-clouddns tests are written in vows, and cover all of the use cases described above. You will need to add your Rackspace API username and API key to test/fixtures/test-config.json before running tests:
"auth":"username": "your-username""apiKey": "your-apikey"
Once you have valid Rackspace credentials you can run tests with npm and vows: