Project

General

Profile

Draft 20 version of DNS API » History » Version 1

Brian Gupta, 05/09/2011 03:39 AM
FIrst dump

1 1 Brian Gupta
h1. Draft 20 version of DNS API, with working notes
2
3
_.DNS |
4
|/dns|POST|Create a new DNS record|@{"fqdn":string(name/ip), "value":string(ip/reverse), "type":string(A/PTR)}@|
5
|/dns/value|DELETE|remove value(ip or reverse) DNS record||
6
7
Record types
8
9
/dns/zone/A (supports multiple records)
10
/dns/zone/PTR (Does not support multiple records)
11
/dns/zone/CNAME (Bind 9 doesn't support roundrobin cnames, so we should at first limit CNAMEs to a single record)
12
/dns/zone/AAAA (supports multiple records)
13
/dns/zone/TXT (supports multiple records)
14
/dns/zone/SPF (supports multiple records)
15
/dns/zone/MX (Needs an extra preference number field, supports multiple records)
16
17
Deferred:
18
/dns/zone/SOA (Can not be dynamically deleted, and needs extra code to handle)
19
/dns/zone/NS (Needs manual serial number increment
20
/dns/zone/SRV (Needs more research.. It might be easy enough, but isn't a priority yet)
21
22
GET /dns -> list of dns zones managed by that proxy
23
GET /dns/zone -> list of all zone records
24
GET /dns/zone/record_type list of all dns records with a given type, for
25
example all CNAME would be /dns/1.2.3.4/CNAME
26
GET /dns/zone/record -> details of the specific record.
27
28
POST /dns/zone -> creates a new record
29
DELETE /dns/zone/record -> deletes a record
30
31
Dynamic DNS RFC http://tools.ietf.org/html/rfc2136
32
Howto: http://caunter.ca/nsupdate.txt
33
34
SOA: https://lists.isc.org/pipermail/bind-users/2003-November/047015.html
35
MX: http://forums.devshed.com/dns-36/using-nsupdate-to-add-an-mx-record-326788.html
36
NS: http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1304925290721+28353475&threadId=702920