github.com/StackExchange/dnscontrol/v4@v4.11.0/documentation/language-reference/domain-modifiers/DnsProvider.md (about)

     1  ---
     2  name: DnsProvider
     3  parameters:
     4    - name
     5    - nsCount
     6  parameter_types:
     7    name: string
     8    nsCount: number?
     9  ---
    10  
    11  DnsProvider indicates that the specified provider should be used to manage
    12  records for this domain. The name must match the name used with [NewDnsProvider](../top-level-functions/NewDnsProvider.md).
    13  
    14  The nsCount parameter determines how the nameservers will be managed from this provider.
    15  
    16  Leaving the parameter out means "fetch and use all nameservers from this provider as authoritative". ie: `DnsProvider("name")`
    17  
    18  Using `0` for nsCount means "do not fetch nameservers from this domain, or give them to the registrar".
    19  
    20  Using a different number, ie: `DnsProvider("name",2)`, means "fetch all nameservers from this provider,
    21  but limit it to this many.
    22  
    23  See [this page](../../nameservers.md) for a detailed explanation of how DNSControl handles nameservers and NS records.
    24  
    25  If a domain (`D()`) does not include any `DnsProvider()` functions,
    26  the DNS records will not be modified. In fact, if you want to control
    27  the Registrar for a domain but not the DNS records themselves, simply
    28  do not include a `DnsProvider()` function for that `D()`.