[ { "id": 0, "jsonrpc": "2.0", "error": { "code": -32000, "message": "Unknown domain" } }, { "id": 1, "jsonrpc": "2.0", "result": [ { "changes": "example.com 3600 IN NS a.example.org.\nexample.com 3600 IN NS b.example.org.\nexample.com 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\nexample.com 172800 IN TXT \"v=spf1 -all\"\n", "comment": "", "result": "", "raw": [ { "rrsets": [ { "name": "example.com.", "type": "NS", "comments": [], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 3600 }, { "name": "example.com.", "type": "SOA", "comments": [], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "example.com.", "type": "TXT", "comments": [], "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 } ], "domain": "" } ], "error": "" } ] }, { "id": 2, "jsonrpc": "2.0", "result": [ { "changes": "2.0.192.in-addr.arpa 3600 IN NS a.example.org.\n2.0.192.in-addr.arpa 3600 IN NS b.example.org.\n2.0.192.in-addr.arpa 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\n2.0.192.in-addr.arpa 172800 IN TXT \"v=spf1 -all\"\n", "comment": "", "result": "", "raw": [ { "rrsets": [ { "name": "2.0.192.in-addr.arpa.", "type": "NS", "comments": [], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 3600 }, { "name": "2.0.192.in-addr.arpa.", "type": "SOA", "comments": [], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "2.0.192.in-addr.arpa.", "type": "TXT", "comments": [], "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 } ], "domain": "" } ], "error": "" } ] }, { "id": 3, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nmail 172800 IN A 192.0.2.12 ; - - joe\n", "comment": "Create a new A record mail.example.com. to 192.0.2.12 and add the reverse", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "mail.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "192.0.2.12", "disabled": false, "set-ptr": true } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 4, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nlocalhost 172800 IN A 127.0.0.1 ; - - joe\n", "comment": "Create a new A record localhost.example.com. to 127.0.0.1", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "localhost.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "127.0.0.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 5, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nwww 172800 IN A 192.0.2.10 ; - - joe\n", "comment": "Create a new A record www.example.com. to 192.0.2.10 and add the reverse", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "www.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "192.0.2.10", "disabled": false, "set-ptr": true } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 6, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\na 172800 IN A 192.0.2.53 ; - - joe\n", "comment": "Create a new A record a.example.com. to 192.0.2.53 and add the reverse", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "a.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "192.0.2.53", "disabled": false, "set-ptr": true } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 7, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nb 172800 IN A 192.0.2.54 ; - - joe\n", "comment": "Create a new A record b.example.com. to 192.0.2.54 and add the reverse", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "b.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "192.0.2.54", "disabled": false, "set-ptr": true } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 8, "jsonrpc": "2.0", "result": [ { "changes": "2.0.192.in-addr.arpa\nexample.com", "comment": "", "result": "", "raw": [ "example.com.", "2.0.192.in-addr.arpa." ], "error": "" } ] }, { "id": 9, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntoto 172800 IN A 1.1.1.1 ; - - joe\n", "comment": "Create a new A record toto.example.com. to 1.1.1.1", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 10, "jsonrpc": "2.0", "result": [ { "changes": "2.0.192.in-addr.arpa\nexample.com", "comment": "", "result": "", "raw": [ "example.com.", "2.0.192.in-addr.arpa." ], "error": "" } ] }, { "id": 11, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com.\n@ 3600 IN NS a.example.org.\n@ 3600 IN NS b.example.org.\n@ 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\n@ 172800 IN TXT \"v=spf1 -all\"\ntoto 172800 IN A 1.1.1.1 ; - - - joe\nlocalhost 172800 IN A 127.0.0.1 ; - - - joe\nwww 172800 IN A 192.0.2.10 ; - - - joe\nmail 172800 IN A 192.0.2.12 ; - - - joe\na 172800 IN A 192.0.2.53 ; - - - joe\nb 172800 IN A 192.0.2.54 ; - - - joe\n", "comment": "", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "example.com.", "type": "NS", "comments": [], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 3600 }, { "name": "example.com.", "type": "SOA", "comments": [], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "example.com.", "type": "TXT", "comments": [], "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "toto.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "localhost.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "127.0.0.1", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "www.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.10", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "mail.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.12", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "a.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.53", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "b.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.54", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 } ], "domain": "example.com." } ], "error": "" } ] }, { "id": 12, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntoto 172800 IN A 1.1.1.1 ; -\n", "comment": "Nothing to do, the record is unchanged", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "A", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 13, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntoto 172800 IN A 1.1.1.1 ; - - joe\ntoto 172800 IN A 192.0.2.30 ; - - joe\n", "comment": "Append a new A record toto.example.com. to 192.0.2.30 and add the reverse", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false }, { "content": "192.0.2.30", "disabled": false, "set-ptr": true } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 14, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN 2.0.192.in-addr.arpa.\n@ 3600 IN NS a.example.org.\n@ 3600 IN NS b.example.org.\n10 172800 IN PTR www.example.com.\n12 172800 IN PTR mail.example.com.\n30 172800 IN PTR toto.example.com.\n53 172800 IN PTR a.example.com.\n54 172800 IN PTR b.example.com.\n@ 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\n@ 172800 IN TXT \"v=spf1 -all\"\n", "comment": "", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "2.0.192.in-addr.arpa.", "type": "NS", "comments": [], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 3600 }, { "name": "10.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "12.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "mail.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "30.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "toto.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "53.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "a.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "54.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "b.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "2.0.192.in-addr.arpa.", "type": "SOA", "comments": [], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "2.0.192.in-addr.arpa.", "type": "TXT", "comments": [], "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 } ], "domain": "2.0.192.in-addr.arpa." } ], "error": "" } ] }, { "id": 15, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN 2.0.192.in-addr.arpa\n;; 30 172800 IN PTR toto.example.com.\n", "comment": "Removing PTR 30.2.0.192.in-addr.arpa.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "30.2.0.192.in-addr.arpa.", "type": "PTR", "comments": null, "records": [ { "content": "toto.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "DELETE", "ttl": 172800 } ], "domain": "2.0.192.in-addr.arpa" } ], "error": "" }, { "changes": "$ORIGIN example.com\ntoto 172800 IN A 1.1.1.1 ; - - joe\n", "comment": "Modify A record toto.example.com. to 1.1.1.1", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 16, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN 2.0.192.in-addr.arpa.\n@ 3600 IN NS a.example.org.\n@ 3600 IN NS b.example.org.\n10 172800 IN PTR www.example.com.\n12 172800 IN PTR mail.example.com.\n53 172800 IN PTR a.example.com.\n54 172800 IN PTR b.example.com.\n@ 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\n@ 172800 IN TXT \"v=spf1 -all\"\n", "comment": "", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "2.0.192.in-addr.arpa.", "type": "NS", "comments": [], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 3600 }, { "name": "10.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "12.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "mail.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "53.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "a.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "54.2.0.192.in-addr.arpa.", "type": "PTR", "comments": [], "records": [ { "content": "b.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "2.0.192.in-addr.arpa.", "type": "SOA", "comments": [], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "2.0.192.in-addr.arpa.", "type": "TXT", "comments": [], "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 } ], "domain": "2.0.192.in-addr.arpa." } ], "error": "" } ] }, { "id": 17, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com.\n@ 3600 IN NS a.example.org.\n@ 3600 IN NS b.example.org.\n@ 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\n@ 172800 IN TXT \"v=spf1 -all\"\ntoto 172800 IN A 1.1.1.1 ; - - - joe\nlocalhost 172800 IN A 127.0.0.1 ; - - - joe\nwww 172800 IN A 192.0.2.10 ; - - - joe\nmail 172800 IN A 192.0.2.12 ; - - - joe\na 172800 IN A 192.0.2.53 ; - - - joe\nb 172800 IN A 192.0.2.54 ; - - - joe\n", "comment": "", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "example.com.", "type": "NS", "comments": [], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 3600 }, { "name": "example.com.", "type": "SOA", "comments": [], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "example.com.", "type": "TXT", "comments": [], "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "toto.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "localhost.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "127.0.0.1", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "www.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.10", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "mail.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.12", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "a.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.53", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "b.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.54", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 } ], "domain": "example.com." } ], "error": "" } ] }, { "id": 18, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nexample.com. 172800 IN CAA 0 issue \"digicert.com\" ; - - joe\n", "comment": "Create a new CAA record example.com. to 0 issue \"digicert.com\"", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "example.com.", "type": "CAA", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "0 issue \"digicert.com\"", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 19, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntoto 172800 IN TXT \"text and spaces\" ; - - joe\n", "comment": "Create a new TXT record toto.example.com. to \"text and spaces\"", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "TXT", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "\"text and spaces\"", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 20, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntoto2 172800 IN A 1.1.1.1 ; - - joe\n", "comment": "Create a new A record toto2.example.com. to 1.1.1.1", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto2.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 21, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN 2.0.192.in-addr.arpa\n10 172800 IN PTR www.example.com.\n", "comment": "Nothing to do, the record is unchanged", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "10.2.0.192.in-addr.arpa.", "type": "PTR", "comments": null, "records": [ { "content": "www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "2.0.192.in-addr.arpa" } ], "error": "" } ] }, { "id": 22, "jsonrpc": "2.0", "error": { "code": -32000, "message": "mail.example.com. must point to 192.0.2.11" } }, { "id": 23, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN 2.0.192.in-addr.arpa\n12 172800 IN PTR mail.example.com.\n", "comment": "Nothing to do, the record is unchanged", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "12.2.0.192.in-addr.arpa.", "type": "PTR", "comments": null, "records": [ { "content": "mail.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "2.0.192.in-addr.arpa" } ], "error": "" } ] }, { "id": 24, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntoto2 300 IN A 1.1.1.1 ; test - joe\n", "comment": "", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto2.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "test" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 300 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 25, "jsonrpc": "2.0", "error": { "code": -32000, "message": "Nothing to do, the record is unchanged" } }, { "id": 26, "jsonrpc": "2.0", "error": { "code": -32000, "message": "Nothing to do, the record is unchanged" } }, { "id": 27, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com.\n@ 172800 IN CAA 0 issue \"digicert.com\" ; - - - joe\n@ 3600 IN NS a.example.org.\n@ 3600 IN NS b.example.org.\n@ 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\n@ 172800 IN TXT \"v=spf1 -all\"\ntoto 172800 IN TXT \"text and spaces\" ; - - - joe\ntoto 172800 IN A 1.1.1.1 ; - - - joe\ntoto2 300 IN A 1.1.1.1 ; test - - joe\nlocalhost 172800 IN A 127.0.0.1 ; - - - joe\nwww 172800 IN A 192.0.2.10 ; - - - joe\nmail 172800 IN A 192.0.2.12 ; - - - joe\na 172800 IN A 192.0.2.53 ; - - - joe\nb 172800 IN A 192.0.2.54 ; - - - joe\n", "comment": "", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "example.com.", "type": "CAA", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "0 issue \"digicert.com\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "example.com.", "type": "NS", "comments": [], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 3600 }, { "name": "example.com.", "type": "SOA", "comments": [], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "example.com.", "type": "TXT", "comments": [], "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "toto.example.com.", "type": "TXT", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "\"text and spaces\"", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "toto.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "toto2.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "test" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 300 }, { "name": "localhost.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "127.0.0.1", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "www.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.10", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "mail.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.12", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "a.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.53", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "b.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "192.0.2.54", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 } ], "domain": "example.com." } ], "error": "" } ] }, { "id": 28, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntiti 172800 IN CNAME toto.example.com. ; - - joe\n", "comment": "Create a new CNAME record titi.example.com. to toto.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "titi.example.com.", "type": "CNAME", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "toto.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 29, "jsonrpc": "2.0", "error": { "code": -32000, "message": "titi.example.com. is not a valid MX" } }, { "id": 30, "jsonrpc": "2.0", "error": { "code": -32000, "message": "titi.example.com. cannot be a CNAME" } }, { "id": 31, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nexample.com. 172800 IN MX 20 www.example.com. ; - - joe\n", "comment": "Create a new MX record example.com. to 20 www.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "example.com.", "type": "MX", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "20 www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 32, "jsonrpc": "2.0", "error": { "code": -32000, "message": "there are records pointing to toto.example.com., please delete them first" } }, { "id": 33, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\n;; toto 172800 IN A 1.1.1.1\n", "comment": "Removing A toto.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "A", "comments": null, "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "DELETE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 34, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\n;; toto 172800 IN TXT \"text and spaces\"\n", "comment": "Removing TXT toto.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "TXT", "comments": null, "records": [ { "content": "\"text and spaces\"", "disabled": false, "set-ptr": false } ], "changetype": "DELETE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 35, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\n;; titi 172800 IN CNAME toto.example.com.\n", "comment": "Removing CNAME titi.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "titi.example.com.", "type": "CNAME", "comments": null, "records": [ { "content": "toto.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "DELETE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 36, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\n;; toto2 300 IN A 1.1.1.1\n", "comment": "Removing A toto2.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto2.example.com.", "type": "A", "comments": null, "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "DELETE", "ttl": 300 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 37, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ndevice.toto 172800 IN A 1.1.1.1 ; - - joe\n", "comment": "Create a new A record device.toto.example.com. to 1.1.1.1", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "device.toto.example.com.", "type": "A", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 38, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntoto 172800 IN NS a.example.org. ; - - joe\ntoto 172800 IN NS b.example.org. ; - - joe\n", "comment": "Append a new NS record toto.example.com. to b.example.org.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "NS", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" }, { "changes": "$ORIGIN example.com\n;; device.toto 172800 IN A 1.1.1.1\n", "comment": "Removing A device.toto.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "device.toto.example.com.", "type": "A", "comments": null, "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "DELETE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" }, { "changes": "toto.example.com 3600 IN NS a.example.org.\ntoto.example.com 3600 IN NS b.example.org.\ntoto.example.com 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\ndevice.toto.example.com 172800 IN A 1.1.1.1 ; - - - joe\n", "comment": "", "result": "", "raw": [ { "rrsets": [ { "name": "toto.example.com.", "type": "NS", "comments": [], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 3600 }, { "name": "toto.example.com.", "type": "SOA", "comments": [], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 }, { "name": "device.toto.example.com.", "type": "A", "comments": [ { "account": " - - joe", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "", "ttl": 172800 } ], "domain": "" } ], "error": "" } ] }, { "id": 39, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nbidule.titi 172800 IN CNAME www.example.com. ; - - joe\n", "comment": "Create a new CNAME record bidule.titi.example.com. to www.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "bidule.titi.example.com.", "type": "CNAME", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 40, "jsonrpc": "2.0", "error": { "code": -32000, "message": "There are records that will be masked if you delegate the zone\nPlease delete them first" } }, { "id": 41, "jsonrpc": "2.0", "error": { "code": -32000, "message": "There are records that will be masked if you delegate the zone\nPlease delete them first" } }, { "id": 42, "jsonrpc": "2.0", "error": { "code": -32000, "message": "There are records that will be masked if you delegate the zone\nPlease delete them first" } }, { "id": 43, "jsonrpc": "2.0", "error": { "code": -32000, "message": "There are records that will be masked if you delegate the zone\nPlease delete them first" } }, { "id": 44, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntruc.titi 172800 IN AAAA 2001:7a8::1 ; - - joe\n", "comment": "Create a new AAAA record truc.titi.example.com. to 2001:7a8::1", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "truc.titi.example.com.", "type": "AAAA", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "2001:7a8::1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 45, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nbidule.titi 172800 IN CNAME www.example.com. ; -\n", "comment": "Nothing to do, the record is unchanged", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "bidule.titi.example.com.", "type": "CNAME", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 46, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\n;; bidule.titi 172800 IN CNAME www.example.com.\n", "comment": "Removing CNAME bidule.titi.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "bidule.titi.example.com.", "type": "CNAME", "comments": null, "records": [ { "content": "www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "DELETE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 47, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntiti 172800 IN NS truc.titi.example.com. ; - - joe\n", "comment": "Create a new NS record titi.example.com. to truc.titi.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "titi.example.com.", "type": "NS", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "truc.titi.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 48, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\ntiti 172800 IN NS a.exemple.com. ; - - joe\ntiti 172800 IN NS truc.titi.example.com. ; - - joe\n", "comment": "Append a new NS record titi.example.com. to a.exemple.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "titi.example.com.", "type": "NS", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "a.exemple.com.", "disabled": false, "set-ptr": false }, { "content": "truc.titi.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 49, "jsonrpc": "2.0", "result": [ { "changes": "truc.titi.example.com 172800 IN AAAA 2001:7a8::1 ; -\nexample.com 172800 IN CAA 0 issue \"digicert.com\" ; -\nexample.com 172800 IN MX 20 www.example.com. ; -\n2.0.192.in-addr.arpa 3600 IN NS a.example.org.\n2.0.192.in-addr.arpa 3600 IN NS b.example.org.\nexample.com 3600 IN NS a.example.org. ; -\nexample.com 3600 IN NS b.example.org. ; -\ntiti.example.com 172800 IN NS a.exemple.com. ; -\ntiti.example.com 172800 IN NS truc.titi.example.com. ; -\ntoto.example.com 3600 IN NS a.example.org. ; -\ntoto.example.com 3600 IN NS a.example.org. ; -\ntoto.example.com 3600 IN NS b.example.org. ; -\ntoto.example.com 3600 IN NS b.example.org. ; -\n10.2.0.192.in-addr.arpa 172800 IN PTR www.example.com.\n12.2.0.192.in-addr.arpa 172800 IN PTR mail.example.com.\n53.2.0.192.in-addr.arpa 172800 IN PTR a.example.com.\n54.2.0.192.in-addr.arpa 172800 IN PTR b.example.com.\n2.0.192.in-addr.arpa 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600\nexample.com 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600 ; -\ntoto.example.com 172800 IN SOA a.example.org. admin.example.com. 0 10380 3600 604800 3600 ; -\n2.0.192.in-addr.arpa 172800 IN TXT \"v=spf1 -all\"\nexample.com 172800 IN TXT \"v=spf1 -all\" ; -\ndevice.toto.example.com 172800 IN A 1.1.1.1 ; -\nlocalhost.example.com 172800 IN A 127.0.0.1 ; -\nwww.example.com 172800 IN A 192.0.2.10 ; -\nmail.example.com 172800 IN A 192.0.2.12 ; -\na.example.com 172800 IN A 192.0.2.53 ; -\nb.example.com 172800 IN A 192.0.2.54 ; -\n", "comment": "", "result": "Dry Run, nothing done", "raw": [ { "rrsets": [ { "name": "truc.titi.example.com.", "type": "AAAA", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "2001:7a8::1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "example.com.", "type": "CAA", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "0 issue \"digicert.com\"", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "example.com.", "type": "MX", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "20 www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "2.0.192.in-addr.arpa.", "type": "NS", "comments": null, "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 3600 }, { "name": "example.com.", "type": "NS", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 3600 }, { "name": "titi.example.com.", "type": "NS", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "a.exemple.com.", "disabled": false, "set-ptr": false }, { "content": "truc.titi.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "toto.example.com.", "type": "NS", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "a.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false }, { "content": "b.example.org.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 3600 }, { "name": "10.2.0.192.in-addr.arpa.", "type": "PTR", "comments": null, "records": [ { "content": "www.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "12.2.0.192.in-addr.arpa.", "type": "PTR", "comments": null, "records": [ { "content": "mail.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "53.2.0.192.in-addr.arpa.", "type": "PTR", "comments": null, "records": [ { "content": "a.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "54.2.0.192.in-addr.arpa.", "type": "PTR", "comments": null, "records": [ { "content": "b.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "2.0.192.in-addr.arpa.", "type": "SOA", "comments": null, "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "example.com.", "type": "SOA", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "toto.example.com.", "type": "SOA", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "a.example.org. admin.example.com. 0 10380 3600 604800 3600", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "2.0.192.in-addr.arpa.", "type": "TXT", "comments": null, "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "example.com.", "type": "TXT", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "\"v=spf1 -all\"", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "device.toto.example.com.", "type": "A", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "1.1.1.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "localhost.example.com.", "type": "A", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "127.0.0.1", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "www.example.com.", "type": "A", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "192.0.2.10", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "mail.example.com.", "type": "A", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "192.0.2.12", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "a.example.com.", "type": "A", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "192.0.2.53", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 }, { "name": "b.example.com.", "type": "A", "comments": [ { "account": "", "content": "-" } ], "records": [ { "content": "192.0.2.54", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "" } ], "error": "" } ] }, { "id": 50, "jsonrpc": "2.0", "result": [ { "changes": "example.com", "comment": "", "result": "", "raw": [ "example.com" ], "error": "" } ] }, { "id": 51, "jsonrpc": "2.0", "result": [ { "changes": "$ORIGIN example.com\nwww5 172800 IN CNAME indirect.titi.example.com. ; - - joe\n", "comment": "Create a new CNAME record www5.example.com. to indirect.titi.example.com.", "result": "Command Successfull", "raw": [ { "rrsets": [ { "name": "www5.example.com.", "type": "CNAME", "comments": [ { "account": " - joe", "content": "-" } ], "records": [ { "content": "indirect.titi.example.com.", "disabled": false, "set-ptr": false } ], "changetype": "REPLACE", "ttl": 172800 } ], "domain": "example.com" } ], "error": "" } ] }, { "id": 52, "jsonrpc": "2.0", "error": { "code": -32000, "message": "invalid name" } }, { "id": 53, "jsonrpc": "2.0", "error": { "code": -32000, "message": "Unknown domain" } } ]