github.com/StackExchange/dnscontrol/v4@v4.11.0/documentation/language-reference/domain-modifiers/NS.md (about) 1 --- 2 name: NS 3 parameters: 4 - name 5 - target 6 - modifiers... 7 parameter_types: 8 name: string 9 target: string 10 "modifiers...": RecordModifier[] 11 --- 12 13 NS adds a NS record to the domain. The name should be the relative label for the domain. 14 15 The name may not be `@` (the bare domain), as that is controlled via [`NAMESERVER()`](NAMESERVER.md). 16 The difference between `NS()` and [`NAMESERVER()`](NAMESERVER.md) is explained in the [`NAMESERVER()` description](NAMESERVER.md). 17 18 19 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 `.`. 20 21 {% code title="dnsconfig.js" %} 22 ```javascript 23 D("example.com", REG_MY_PROVIDER, DnsProvider(DSP_MY_PROVIDER), 24 NS("foo", "ns1.example2.com."), // Delegate ".foo.example.com" zone to another server. 25 NS("foo", "ns2.example2.com."), // Delegate ".foo.example.com" zone to another server. 26 A("ns1.example2.com", "10.10.10.10"), // Glue records 27 A("ns2.example2.com", "10.10.10.20"), // Glue records 28 END); 29 ``` 30 {% endcode %}