🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

pointdns

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pointdns

pointhq.com API client

0.2.1
latest
Source
npm
Version published
Weekly downloads
8
-60%
Maintainers
1
Weekly downloads
 
Created
Source

nodejs-pointdns

This library provides easy access to point zone & record management. For information about the services offered on Point see the website

Authentication

To access your Point account, you'll need to define your username & apitoken. The username is your email address and the apitoken is the API token which, can be found in My Account tab.

Instalation

NPM latest stable version:

npm install pointdns

or NPM most recent version:

npm install git+https://github.com/copper/nodejs-pointdns.git

Example

Load module

var pointdns = require('pointdns')({ username:'john@example.com', apitoken:'secret-key' })

Create a new zone

pointdns.zone.add({'name': 'example.com'},
    function( err, zone ){
        console.log('pointdns.zone.add', zone, err )
    }
)

Get list of zones

pointdns.zones.list({},
    function( err, zones ){
        console.log('pointdns.zones.list', zones, err )
    }
)

Get list of zones by group

pointdns.zones.list({group:'Clients'},
    function( err, zones ){
        console.log('pointdns.zones.list group Clients', zones, err )
    }
)

Update a zone

pointdns.zone.update({zone_id: 1}, {'group':'Services'},
    function( err, zone ){
        console.log('pointdns.zone.update', zone, err )
    }
)

Get zone

pointdns.zone.get({zone_id: 1},
    function( err, zone ){
        console.log('pointdns.zone.get', zone, err )
    }
)

Delete zone

pointdns.zone.del({zone_id: 1},
    function( err, zone ){
        console.log('pointdns.zone.del', zone, err )
    }
)

Create a new record

pointdns.record.add({'zone_id': 1}, {"name":"site","record_type":"A","data":"1.2.3.4"},
    function( err, record ){
        console.log('pointdns.record.add', record, err )
    }
)

Update a record

pointdns.record.update({'zone_id': 1, 'record_id': 1}, {"name":"site2","data":"2.3.4.5"},
    function( err, record ){
        console.log('pointdns.record.update', record, err )
    }
)

Get list of records for zone

pointdns.records.list({zone_id: 1},
    function( err, records ){
        console.log('pointdns.records.list', records, err )
    }
)

Get record for zone

pointdns.record.get({'zone_id': 1, 'record_id': 1},
    function( err, record ){
        console.log('pointdns.record.get', record, err )
    }
)

Delete a record

pointdns.record.del({'zone_id': 1, 'record_id': 1},
    function( err, records ){
        console.log('pointdns.record.del', records, err )
    }
)

Keywords

pointdns

FAQs

Package last updated on 23 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts