github.com/teknogeek/dnscontrol@v0.2.8/docs/nameservers.md (about)

     1  ---
     2  layout: default
     3  title: Nameservers
     4  ---
     5  
     6  # Nameservers
     7  
     8  DNSControl can handle a variety of provider scenarios for you:
     9  
    10  - A single provider manages everything for your domains (Ex: name.com registers and serves dns)
    11  - A single provider serves dns seperately from the registrar (Ex: name.com registers and cloudflare hosts dns records)
    12  - Multiple providers "co-host" dns (Ex: Route53 and Google Cloud DNS both serve as authoritative nameservers)
    13  - One or more "active" dns hosts and another "backup" dns host. (Ex: route53 hosts dns, but I update a local bind server as a backup)
    14  
    15  All of these scenarios differ in how they manage:
    16  
    17  - The root list of authoritative nameservers stored in the tld zone by your registrar.
    18  - The list of NS records for the base domain that is served by each dns host.
    19  
    20  DNSControl attempts to manage these records for you as much as possible, according the the following processes:
    21  
    22  ## 1. Specifying Nameservers
    23  
    24  There are several different ways to declare nameservers for a zone:
    25  
    26  1. Explicit [`NAMESERVER`](/js#NAMESERVER) records in a domain:
    27  
    28      `NAMESERVER("ns1.myhost.tld")`
    29  2. Request all nameservers to use from a provider (usually via api):
    30  
    31      `DnsProvider(route53)`
    32  3. Request a limited number of nameservers from a provider:
    33  
    34      `DnsProvider(route53, 2), DnsProvider(gcloud, 2)`
    35  
    36      This can be useful to limit the total number of NS records when using multiple providers together, for performance reasons.
    37  
    38  ## 2. DNSControl processes
    39  
    40  The first step in running a domain is a first pass to collect all nameservers that we should use.
    41  DNSControl collects all explicit nameservers, and calls the method on each provider to get nameservers to use.
    42  After this process we have a list of "Authoritative Nameservers" for the domain.
    43  
    44  As much as possible, all dns servers should agree on this nameserver list, and serve identical NS records. DNSControl will generate
    45  NS records for the authoritative nameserver list and automatically add them to the domain's records.
    46  NS records for the base domain should not be specified manually, as that will result in an error.
    47  
    48  {% include alert.html text="Note: Not all providers allow full control over the NS records of your zone. It is not recommended to use these providers in complicated scenarios such as hosting across multiple providers. See individual provider docs for more info." %}
    49  
    50  DnsControl will also register the authoritative nameserver list with the registrar, so that all nameserver are used in the tld registry.
    51  
    52  ## 3. Backup providers
    53  
    54  It is also possible to specify a DNS Provider that is not "authoritative" by using `DnsProvider("name", 0)`. This means the provider will be updated
    55  with all records to match the authoritative ones, but it will not be registered in the tld name servers, and will not take traffic.
    56  It's nameservers will not be added to the authoritative set. While this may seem an attractive option, there are a few things to note:
    57  
    58  1. Backup nameservers will still be updated with the NS records from the authoritative nameserver list. This means the records will still need to be updated to correctly "activate" the provider.
    59  2. Costs generally scale with utilization, so there is often no real savings associated with an active-passive setup vs an active-active one anyway.
    60