2017-01-12 04:02:45 +08:00
---
layout: default
2019-05-23 21:29:21 +08:00
title: DNSControl
2017-01-12 04:02:45 +08:00
---
2017-10-03 01:35:13 +08:00
< div class = "row jumbotron" >
2022-10-28 04:17:19 +08:00
< div class = "col-md-12" >
< div >
< h1 class = "hometitle" > DNSControl< / h1 >
2023-01-20 20:56:20 +08:00
< p class = "lead" > DNSControl is an < strong > < a href = "https://docs.dnscontrol.org/developer-info/opinions" > opinionated< / a > < / strong > platform for seamlessly managing your DNS configuration across any number of DNS hosts, both in the cloud or in your own infrastructure. It manages all of the domains for the Stack Overflow network, and can do the same for you!< / p >
2022-10-28 04:17:19 +08:00
< / div >
< / div >
2017-10-03 01:35:13 +08:00
< / div >
< div class = "row text-center" style = "padding-top: 75px;" >
2022-10-28 04:17:19 +08:00
< div class = "col-md-4" >
< h3 > Try It< / h3 >
< p > Want to jump right in? Follow our
2023-01-20 20:56:20 +08:00
< strong > < a href = "https://docs.dnscontrol.org/getting-started/getting-started" > quick start tutorial< / a > < / strong >
2017-10-03 01:35:13 +08:00
on a new domain or
2023-01-20 20:56:20 +08:00
< strong > < a href = "https://docs.dnscontrol.org/getting-started/migrating" > migrate< / a > < / strong >
2017-10-03 01:35:13 +08:00
an existing one. Read the
2023-01-20 20:56:20 +08:00
< strong > < a href = "https://docs.dnscontrol.org/language-reference/js" > language spec< / a > < / strong >
2022-11-02 01:03:04 +08:00
for more info. You can also < strong > < a href = "#getting-started" > view a list of all topics< / a > < / strong > .
2017-10-03 01:35:13 +08:00
< / p >
2022-10-28 04:17:19 +08:00
< / div >
2017-10-03 01:35:13 +08:00
2022-10-28 04:17:19 +08:00
< div class = "col-md-4" >
< h3 > Use It< / h3 >
< p > Take advantage of the
2022-11-02 01:03:04 +08:00
< strong > < a href = "#advanced-features" > advanced features< / a > < / strong > .
2017-10-03 01:35:13 +08:00
Use macros and variables for easier updates.
<!-- Optimize your SPF records. -->
Upload your zones to
2023-01-20 20:56:20 +08:00
< strong > < a href = "https://docs.dnscontrol.org/service-providers/providers" > multiple DNS providers< / a > < / strong > .
2017-10-03 01:35:13 +08:00
< / p >
2022-10-28 04:17:19 +08:00
< / div >
2017-10-03 01:35:13 +08:00
2022-10-28 04:17:19 +08:00
< div class = "col-md-4" >
< h3 > Get Involved< / h3 >
< p > Join our
2017-10-03 01:35:13 +08:00
< strong > < a href = "https://groups.google.com/forum/#!forum/dnscontrol-discuss" > mailing list< / a > < / strong > .
We make it easy to contribute by using
< strong > < a href = "https://github.com/StackExchange/dnscontrol" > GitHub< / a > < / strong > ,
you can make code changes with confidence thanks to extensive integration tests.
2020-11-30 03:15:40 +08:00
The project is
2017-10-03 01:35:13 +08:00
< strong > < a href = "https://everythingsysadmin.com/2017/08/go-get-up-to-speed.html" > newbie-friendly< / a > < / strong >
so jump right in!
< / p >
2022-10-28 04:17:19 +08:00
< / div >
2017-10-03 01:35:13 +08:00
< / div >
< div class = "row" style = "padding-top: 75px" > < div class = 'col-md-4 col-md-offset-4' > < h2 class = "text-center feature-header" > Features< / h2 > < / div > < / div >
< hr class = "feature" >
< div class = "row" >
{% include feature.html text="Maintain your DNS data as a high-level DS, with macros, and variables for easier updates." img="biology.svg" %}
2022-10-28 04:17:19 +08:00
{% include feature.html text="Super extensible! Plug-in architecture makes adding new DNS providers and Registrars easy!" img="light-bulb.svg" %}
{% include feature.html text="Eliminate vendor lock-in. Switch DNS providers easily, any time, with full fidelity." img="group.svg" %}
{% include feature.html text="Reduce points of failure: Easily maintain dual DNS providers and easily drop one that is down." img="layers.svg" %}
2022-11-02 19:07:11 +08:00
{% include feature.html text="Supports 35+ DNS Providers including BIND, AWS Route 53, Google DNS, and name.com" img="cancel.svg" %}
2022-10-28 04:17:19 +08:00
{% include feature.html text="Apply CI/CD principles to DNS: Unit-tests, system-tests, automated deployment." img="share.svg" %}
{% include feature.html text="All the benefits of Git (or any VCS) for your DNS zone data. View history. Accept PRs." img="document.svg" %}
{% include feature.html text="Optimize DNS with SPF optimizer. Detect too many lookups. Flatten includes." img="mail.svg" %}
{% include feature.html text="Runs on Linux, Windows, Mac, or any operating system supported by Go." img="speech-bubble.svg" %}
{% include feature.html text="Enable/disable Cloudflare proxying (the \"orange cloud\" button) directly from your DNSControl files." img="cloud-computing.svg" %}
{% include feature.html text="Assign an IP address to a constant and use the variable name throughout the configuration. Need to change the IP address globally? Just change the variable and \"recompile.\"" img="compass.svg" %}
{% include feature.html text="Keep similar domains in sync with transforms, macros, and variables." img="attachment.svg" %}
2017-10-03 01:35:13 +08:00
< / div >
< hr class = "feature" >
< div class = "container-fluid" >
2022-10-28 04:17:19 +08:00
< div class = "row" >
< div class = "col-md-4" >
2022-11-02 01:03:04 +08:00
< h2 id = "getting-started" >
2022-10-28 04:17:19 +08:00
Getting Started
< / h2 >
< p >
Information for new users and the curious.
< / p >
2017-10-03 01:35:13 +08:00
2022-10-28 04:17:19 +08:00
< ul >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/getting-started/getting-started" > Getting Started< / a > : A walk-through of the basics
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/service-providers/providers" > Providers< / a > : Which DNS providers are supported
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/getting-started/examples" > Examples< / a > : The DNSControl language by example
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/getting-started/migrating" > Migrating< / a > : Migrating zones to DNSControl
2022-10-28 04:17:19 +08:00
< / li >
2023-01-13 05:59:42 +08:00
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/getting-started/typescript" > TypeScript< / a > (optional): Improve autocomplete and add type checking
2023-01-13 05:59:42 +08:00
< / li >
2022-10-28 04:17:19 +08:00
< / ul >
2022-03-26 03:20:30 +08:00
2022-11-02 01:03:04 +08:00
< h2 id = "commands" >
2022-10-28 04:17:19 +08:00
Commands
< / h2 >
< p >
DNSControl sub-commands and options.
< / p >
2022-03-26 03:20:30 +08:00
2022-10-28 04:17:19 +08:00
< ul >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/commands/creds-json" > creds.json< / a > : creds.json file format
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/commands/check-creds" > check-creds< / a > : Verify credentials
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/commands/get-zones" > get-zones< / a > : Query a provider for zone info
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/commands/get-certs" > get-certs< / a > : Renew SSL/TLS certs (DEPRECATED)
2022-10-28 04:17:19 +08:00
< / li >
< / ul >
2022-03-26 03:20:30 +08:00
2022-10-28 04:17:19 +08:00
< / div >
< div class = "col-md-4" >
2022-11-02 01:03:04 +08:00
< h2 id = "reference" >
2022-10-28 04:17:19 +08:00
Reference
< / h2 >
< p >
Language resources and procedures.
< / p >
2017-10-03 01:35:13 +08:00
2022-10-28 04:17:19 +08:00
< ul >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/language-reference/js" > Language Reference< / a > : Description of the DNSControl language (DSL)
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/developer-info/alias" > Aliases< / a > : ALIAS/ANAME records
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/language-reference/record-modifiers/spf_builder" > SPF Optimizer< / a > : Optimize your SPF records
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/language-reference/record-modifiers/caa_builder" > CAA Builder< / a > : Build CAA records the easy way
2022-10-28 04:17:19 +08:00
< / li >
< / ul >
< / div >
< div class = "col-md-4" >
2022-11-02 01:03:04 +08:00
< h2 id = "advanced-features" >
Advanced features
2022-10-28 04:17:19 +08:00
< / h2 >
< p >
Take advantage of DNSControl's unique features.
< / p >
< ul >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/language-reference/why-the-dot" > Why CNAME/MX/NS targets require a trailing "dot"< / a >
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/developer-info/unittests" > Testing< / a > : Unit Testing for you DNS Data
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/advanced-features/notifications" > Notifications< / a > : Web-hook for changes
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/advanced-features/code-tricks" > Code Tricks< / a > : Safely use macros and loops.
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/advanced-features/cli-variables" > CLI variables< / a > : Passing variables from CLI to JS
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/advanced-features/nameservers" > Nameservers & Delegation< / a > : Many examples.
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/advanced-features/ci-cd-gitlab" > Gitlab CI/CD example< / a > .
2022-10-28 04:17:19 +08:00
< / li >
< / ul >
< / div >
< / div >
< div class = "row" >
< div class = "col-md-12" >
2022-11-02 01:03:04 +08:00
< h2 id = "developer-info" >
2022-10-28 04:17:19 +08:00
Developer Info
< / h2 >
< p >
It is easy to add features and new providers to DNSControl. The code is very modular and easy to modify. There are extensive integration tests that make it easy to boldly make changes with confidence that you'll know if anything is broken. Our mailing list is friendly. Afraid to make your first PR? We'll gladly mentor you through the process. Many major code contributions have come from < a href = "https://everythingsysadmin.com/2017/08/go-get-up-to-speed.html" > first-time Go users< / a > !
< / p >
< ul >
< li >
2022-11-02 01:03:04 +08:00
GitHub < a href = "https://github.com/StackExchange/dnscontrol" > StackExchange/dnscontrol< / a > : Get the source!
2022-10-28 04:17:19 +08:00
< / li >
< li >
Mailing list: < a href = "https://groups.google.com/forum/#!forum/dnscontrol-discuss" > dnscontrol-discuss< / a > : The friendly best place to ask questions and propose new features
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/developer-info/bug-triage" > Bug Triage< / a > : How bugs are triaged
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/release/release-engineering" > Release Engineering< / a > : How to build and ship a release
2022-10-28 04:17:19 +08:00
< / li >
2022-10-29 03:14:28 +08:00
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/developer-info/byo-secrets" > Bring-Your-Own-Secrets< / a > : Automate tests
2022-10-29 03:14:28 +08:00
< / li >
2022-10-28 04:17:19 +08:00
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/developer-info/writing-providers" > Step-by-Step Guide: Writing Providers< / a > : How to write a DNS or Registrar Provider
2022-10-28 04:17:19 +08:00
< / li >
< li >
2023-01-20 20:56:20 +08:00
< a href = "https://docs.dnscontrol.org/developer-info/adding-new-rtypes" > Step-by-Step Guide: Adding new DNS rtypes< / a > : How to add a new DNS record type
2022-10-28 04:17:19 +08:00
< / li >
2023-08-30 02:00:09 +08:00
< li >
< a href = "https://docs.dnscontrol.org/developer-info/ordering" > DNS reordering< / a > : How DNSControl determines the order of the changes
< / li >
2022-10-28 04:17:19 +08:00
< / ul >
< / div >
< / div >
2017-10-03 01:35:13 +08:00
< / div >
< hr class = "feature" >
2022-11-02 01:03:04 +08:00
< p > < small > Icons made by Freepik from < a href = "https://www.flaticon.com" > www.flaticon.com< / a > < / small > < / p >