github.com/teknogeek/dnscontrol/v2@v2.10.1-0.20200227202244-ae299b55ba42/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 identifier (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 %}