Skip to content

Commit

Permalink
Add documentation for directBackendCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed Jun 30, 2015
1 parent dc5c586 commit 53cfa8b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/markdown/authoritative/backend-remote.md
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,42 @@ Content-Type: text/javascript; charset=utf-8
{"result":2013060501}
```

### `directBackendCmd`
Can be used to send arbitrary commands to your backend using (backend-cmd)(dnssec.md#pdnssec).

* Mandatory: no
* Parameters: query
* Reply: anything but boolean false for success, false for failure

#### Example JSON/RPC
Query:
```
{"method":"directBackendCmd","parameters":{"query":"PING"}}
```

Response:
```
{"result":"PONG"}
```

#### Example HTTP/RPC
Query:
```
POST /dnsapi/directBackendCmd
Content-Type: application/x-www-form-urlencoded
Content-Length: 10
query=PING
```

Response:
```
HTTP/1.1 200 OK
Content-Type: text/javascript; charset=utf-8
{"result":"PONG"}
```

# Examples
## Scenario: SOA lookup via pipe or unix connector
Query:
Expand Down

0 comments on commit 53cfa8b

Please sign in to comment.