Skip to content

Commit 986bc4c

Browse files
authored
DOCS: replace all NewRegistrar('ThirdParty') (#3889)
`NewRegistrar("ThirdParty");` has been replaced w/ `NewRegistrar("none");` The PR updates the docs.
1 parent a0288bd commit 986bc4c

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

documentation/advanced-features/nameservers.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var REG_NAMECOM = NewRegistrar("namedotcom_main");
1818
// The "NONE" registrar is a "fake" registrar.
1919
// This is useful if the registrar is not supported by DNSControl,
2020
// or if you don't want to control the domain's delegation.
21-
var REG_THIRDPARTY = NewRegistrar("ThirdParty");
21+
var REG_NONE = NewRegistrar("none");
2222

2323
// ========== DNS Providers:
2424

@@ -83,7 +83,8 @@ updating the zone's records (most likely at a different provider).
8383

8484
{% code title="dnsconfig.js" %}
8585
```javascript
86-
D("example.com", REG_THIRDPARTY,
86+
var REG_NONE = NewRegistrar("none");
87+
D("example.com", REG_NONE,
8788
DnsProvider(DNS_NAMECOM),
8889
A("@", "10.2.3.4"),
8990
);

documentation/language-reference/domain-modifiers/NAMESERVER.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ It looks like this:
8383

8484
{% code title="dnsconfig.js" %}
8585
```javascript
86-
var REG_THIRDPARTY = NewRegistrar("ThirdParty");
87-
D("example.com", REG_THIRDPARTY,
86+
var REG_NONE = NewRegistrar("none");
87+
D("example.com", REG_NONE,
8888
...
8989
);
9090
```

documentation/language-reference/top-level-functions/D.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ To differentiate the different domains, specify the domains as
6565

6666
{% code title="dnsconfig.js" %}
6767
```javascript
68-
var REG_THIRDPARTY = NewRegistrar("ThirdParty");
68+
var REG_NONE = NewRegistrar("none");
6969
var DNS_INSIDE = NewDnsProvider("Cloudflare");
7070
var DNS_OUTSIDE = NewDnsProvider("bind");
7171

72-
D("example.com!inside", REG_THIRDPARTY, DnsProvider(DNS_INSIDE),
72+
D("example.com!inside", REG_NONE, DnsProvider(DNS_INSIDE),
7373
A("www", "10.10.10.10"),
7474
);
7575

76-
D("example.com!outside", REG_THIRDPARTY, DnsProvider(DNS_OUTSIDE),
76+
D("example.com!outside", REG_NONE, DnsProvider(DNS_OUTSIDE),
7777
A("www", "20.20.20.20"),
7878
);
7979

0 commit comments

Comments
 (0)