Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.
Franklin van de Meent edited this page Feb 1, 2015 · 4 revisions

API docs: http://developer.dnsimple.com/domains/records/

Add a record

var input = {
  record: {
    name: 'office',
    record_type: 'A',
    content: '1.2.3.4'
  }
};

dnsimple ('POST', '/domains/two.com/records', input, function (err, data) {
  if (err) { return console.log (err); }
  console.log ('Record \'%s\' created for %s', data.record.name, data.record.domain_id);
});
Clone this wiki locally