mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-12 10:27:57 +08:00
756 B
756 B
name | parameters | ||
---|---|---|---|
NAMESERVER |
|
NAMESERVER()
instructs DNSControl to inform the domain's registrar where to find this zone.
For some registrars this will also add NS records to the zone itself.
This takes exactly one argument: the name of the nameserver. It must end with a "." if it is a FQDN, just like all targets.
This is different than the NS()
function, which inserts NS records
in the current zone and accepts a label. It is useful for downward
delegations. This is for informing upstream delegations.
{% include startExample.html %} {% highlight js %}
D("example.com", REGISTRAR, .... , NAMESERVER("ns1.myserver.com."), NAMESERVER("ns2.myserver.com."), );
{%endhighlight%} {% include endExample.html %}