Project

General

Profile

Draft 20 version of DNS API » History » Version 7

Brian Gupta, 05/09/2011 04:03 AM

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