We use DNSControl to manage our external DNS Zones.
To make a change to a DNS Zone, follow the following steps.
- Locate the Domain you want to modify within the
domains
folder.- For instance
example.com
records live within thedomains/example_com.js
file.
- For instance
- Locate the entry you wish to modify or an area with similar entries to the one you wish to add.
- Make your changes or additions. A few examples can be found below.
- Commit to branch, push, and create a pull request.
- The changes will be reviewed and merged by admins.
A('@', '192.168.1.1', CF_PROXY_ON),
A('www', '192.168.1.1', CF_PROXY_ON)
Note the trailing .
. See Why trailing dot
CNAME('dev', 'example.com.', CF_PROXY_ON)
The macros CF_PROXY_ON
, CF_PROXY_OFF
, and CF_PROXY_FULL
control the use of CloudFlare CDN. Typically web hosted webapp use CF_PROXY_ON
. This provides DDOS protection as well as caching and other security and traffic flow benefits. See.
DNSControl can be run within Docker.
Running the following from the root folder will validate the dnsconfig.js file and report any errors during validation.
docker run --rm -i -v ${pwd}:/dns stackexchange/dnscontrol:latest dnscontrol check
When a PR is opened, the CI will run dnscontrol preview
which describes changes (if any) which will be made and stops the build if any errors are found.