Last updated
Last updated
DNSControl performs a number of tests during the validation stage. You can find them in pkg/normalize/validate.go
.
Tests specific to your environment may be added as external tests. Output the intermediate representation as a JSON file and perform tests on this data.
Output the intermediate representation:
NOTE: The --pretty
flag is optional.
Here is a sample test written in bash
using the command. This fails if the number of MX records in the stackex.com
domain is not exactly 5:
Manipulating JSON data is difficult. If you implement ways to make it easier, we'd gladly accept contributions.