DOCS: Removed comments from dnsconfig.js code examples (#2386)

This commit is contained in:
Jeffrey Cafferata 2023-05-21 19:49:35 +02:00 committed by GitHub
parent 89b9f1b641
commit cfcc451089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 10 deletions

View file

@ -88,12 +88,8 @@ The file looks like:
{% code title="dnsconfig.js" %}
```javascript
// Providers:
var REG_NONE = NewRegistrar('none'); // No registrar.
var DNS_BIND = NewDnsProvider('bind'); // ISC BIND.
// Domains:
var REG_NONE = NewRegistrar('none');
var DNS_BIND = NewDnsProvider('bind');
D('example.com', REG_NONE, DnsProvider(DNS_BIND),
A('@', '1.2.3.4')

View file

@ -73,7 +73,6 @@ You are free to decide if you want to use both of our provider technology or jus
{% code title="dnsconfig.js" %}
```javascript
// Providers:
var REG_HX = NewRegistrar("hexonet");
var DSP_HX = NewDnsProvider("hexonet");
@ -86,7 +85,6 @@ DEFAULTS(
DefaultTTL(3600)
);
// Domains:
D("abhoster.com", REG_HX, DnsProvider(DSP_HX),
NAMESERVER("ns1.ispapi.net"),
NAMESERVER("ns2.ispapi.net"),

View file

@ -183,7 +183,6 @@ you're not forced to do that (thank god).
{% code title="dnsconfig.js" %}
```javascript
// Providers:
var REG_LOOPIA = NewRegistrar("loopia");
var DSP_LOOPIA = NewDnsProvider("loopia");
@ -195,7 +194,6 @@ DEFAULTS(
DefaultTTL(3600)
);
// Domains:
D("example.com", REG_LOOPIA, DnsProvider(DSP_LOOPIA),
//NAMESERVER("ns1.loopia.se."), //default
//NAMESERVER("ns2.loopia.se."), //default