From: Aki Tuomi Date: Tue, 15 Jul 2014 17:31:54 +0000 (+0300) Subject: Documentation for isMaster X-Git-Tag: auth-3.4.0-rc1~82^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58dd590c4b1351cfb6098a7bc6d4db61b3765f37;p=pdns Documentation for isMaster --- diff --git a/pdns/docs/pdns.xml b/pdns/docs/pdns.xml index 7072e4056..df975a5a0 100644 --- a/pdns/docs/pdns.xml +++ b/pdns/docs/pdns.xml @@ -21766,6 +21766,67 @@ Content-Type: text/javascript; charset=utf-8 +Method: isMaster + + + Mandatory: + No + + + Parameters: + name,ip + + + Reply: + true for success, false for failure. + + + Description + +Determines whether given IP is master for given domain name. + + + + Example JSON/RPC: + + + Query: + +{"method":"isMaster","parameters":{"name":"example.com","ip":"10.0.0.1"}} + + + + Response: + +{"result":true} + + + + + + Example HTTP/RPC: + + + Query: + +GET /dnsapi/isMaster/example.com/10.0.0.1 + + + + + Response: + +HTTP/1.1 200 OK +Content-Type: text/javascript; charset=utf-8 + +{"result":true} + + + + + + + Method: superMasterBackend