Project

General

Profile

Draft 20 version of DNS API » History » Version 2

Brian Gupta, 05/09/2011 03:41 AM
added wiki headers

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