mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
NEW FEATURE: Added "push --report" flag which generates JSON report of changes made (#2543)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
committed by
GitHub
parent
f1fd723c80
commit
1d825be67a
34
documentation/json-reports.md
Normal file
34
documentation/json-reports.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# JSON Reports
|
||||
|
||||
DNSControl has build in functionality to generate a machine-parseable report after pushing changes. This report is JSON formated and contains the zonename, the provider or registrar name and the amount of performed changes.
|
||||
|
||||
## Usage
|
||||
|
||||
To enable the report option you must use the `push` operation in combination with the `--report <filename>` option. This generates the json file.
|
||||
|
||||
{% code title="report.json" %}
|
||||
```json
|
||||
[
|
||||
{
|
||||
"domain": "private.example.com",
|
||||
"corrections": 10,
|
||||
"provider": "bind"
|
||||
},
|
||||
{
|
||||
"domain": "private.example.com",
|
||||
"corrections": 0,
|
||||
"registrar": "none"
|
||||
},
|
||||
{
|
||||
"domain": "admin.example.com",
|
||||
"corrections": 5,
|
||||
"provider": "bind"
|
||||
},
|
||||
{
|
||||
"domain": "admin.example.com",
|
||||
"corrections": 0,
|
||||
"registrar": "none"
|
||||
}
|
||||
]
|
||||
```
|
||||
{% endcode %}
|
||||
Reference in New Issue
Block a user