NewRegistrar
NewRegistrar activates a Registrar Provider specified in creds.json. A registrar maintains the domain's registration and delegation (i.e. the nameservers for the domain). DNSControl only manages the delegation.
namemust match the name of an entry increds.json.typeis deprecated. The provider type is read from theTYPEfield increds.json.metais a way to send additional parameters to the provider. It is optional and only certain providers use it. See the individual provider docs for details.
This function will return an opaque string that should be assigned to a variable name for use in D directives.
var REG_MYNDC = NewRegistrar("mynamedotcom");
var DNS_MYAWS = NewDnsProvider("myaws");
D("example.com", REG_MYNDC, DnsProvider(DNS_MYAWS),
A("@","1.2.3.4"),
);Last updated