> For the complete documentation index, see [llms.txt](https://docs.dnscontrol.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dnscontrol.org/language-reference/domain-modifiers/all_ns.md).

# ALL\_NS

`ALL_NS` selects all nameservers from a DNS service. This is also the default when maxNS is omitted from [SERVICE](https://docs.dnscontrol.org/language-reference/domain-modifiers/service.md).

Use it to supply configuration metadata without limiting nameservers:

```javascript
D("example.com", REGISTRAR(),
    SERVICE("bind", ALL_NS, {default_ns: ["ns1.example.net.", "ns2.example.net."]}),
    A("@", "192.0.2.1"),
);
```

In addition to `ALL_NS`, `0` means use no nameservers; a positive integer limits the number used.

FunFact: `ALL_NS` is an alias for `-1` but please don't depend on this. Specifying `-1` to mean "all" may change some day.
