github.com/teknogeek/dnscontrol/v2@v2.10.1-0.20200227202244-ae299b55ba42/docs/_functions/domain/NS.md (about)

     1  ---
     2  name: NS
     3  parameters:
     4    - name
     5    - target
     6    - modifiers...
     7  ---
     8  
     9  NS adds a NS record to the domain. The name should be the relative label for the domain.
    10  
    11  The name may not be `@` (the bare domain), as that is controlled via `NAMESERVER()`.
    12  The difference between `NS()` and `NAMESERVER()` is explained in the `NAMESERVER()` description.
    13  
    14  
    15  Target should be a string representing the NS target. If it is a single label we will assume it is a relative name on the current domain. If it contains *any* dots, it should be a fully qualified domain name, ending with a `.`.
    16  
    17  {% include startExample.html %}
    18  {% highlight js %}
    19  
    20  D("example.com", REGISTRAR, DnsProvider("R53"),
    21    NS("foo", "ns1.example2.com."), // Delegate ".foo.example.com" zone to another server.
    22    NS("foo", "ns2.example2.com."), // Delegate ".foo.example.com" zone to another server.
    23    A("ns1.example2.com", "10.10.10.10"), // Glue records
    24    A("ns2.example2.com", "10.10.10.20"), // Glue records
    25  );
    26  
    27  {%endhighlight%}
    28  {% include endExample.html %}