github.com/philhug/dnscontrol@v0.2.4-0.20180625181521-921fa9849001/docs/_providers/bind.md (about)

     1  ---
     2  name: BIND
     3  title: BIND Provider
     4  layout: default
     5  jsId: BIND
     6  ---
     7  # BIND Provider
     8  This provider maintains a directory with a collection of .zone files.
     9  
    10  This provider does not generate or update the named.conf file, nor does it deploy the .zone files to the BIND master.
    11  Both of those tasks are different at each site, so they are best done by a locally-written script.
    12  
    13  
    14  ## Configuration
    15  In your credentials file (`creds.json`), you can specify a `directory` where the provider will look for and create zone files. The default is the `zones` directory where dnscontrol is run.
    16  
    17  {% highlight json %}
    18  {
    19    "bind": {
    20      "directory": "myzones"
    21    }
    22  }
    23  {% endhighlight %}
    24  
    25  The BIND provider does not require anything in `creds.json`. It does accept some optional metadata via your DNS config when you create the provider:
    26  
    27  {% highlight javascript %}
    28  var BIND = NewDnsProvider('bind', 'BIND', {
    29          'default_soa': {
    30          'master': 'ns1.example.tld.',
    31          'mbox': 'sysadmin.example.tld.',
    32          'refresh': 3600,
    33          'retry': 600,
    34          'expire': 604800,
    35          'minttl': 1440,
    36      },
    37      'default_ns': [
    38          'ns1.example.tld.',
    39          'ns2.example.tld.',
    40          'ns3.example.tld.',
    41          'ns4.example.tld.'
    42      ]
    43  })
    44  {% endhighlight %}
    45  
    46  If you need to customize your SOA or NS records, you can do so with this setup.