github.com/hexonet/dnscontrol@v0.2.8/docs/_functions/global/NewDnsProvider.md (about)

     1  ---
     2  name: NewDnsProvider
     3  parameters:
     4    - name
     5    - type
     6    - meta
     7  return: string
     8  ---
     9  
    10  NewDnsProvider registers a new DNS Service Provider. The name can be any string value you would like to use.
    11  The type must match a valid dns provider type identifer (see [provider page.]({{site.github.url}}/provider-list))
    12  
    13  Metadata is an optional object, that will only be used by certain providers. See [individual provider docs]({{site.github.url}}/provider-list) for specific details.
    14  
    15  This function will return the name as a string so that you may assign it to a variable to use inside [D](#D) directives.
    16  
    17  {% include startExample.html %}
    18  {% highlight js %}
    19  var REGISTRAR = NewRegistrar("name.com", "NAMEDOTCOM");
    20  var r53 = NewDnsProvider("R53","ROUTE53");
    21  
    22  D("example.com", REGISTRAR, DnsProvider(r53), A("@","1.2.3.4"));
    23  {%endhighlight%}
    24  {% include endExample.html %}