mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-09-20 14:56:20 +08:00
docs/examples.md: Change " to ' for docs
This commit is contained in:
parent
eb3c1ab00f
commit
ea47b8ecc1
|
@ -36,11 +36,11 @@ D('example.com', REG, DnsProvider('GCLOUD'),
|
|||
|
||||
{% highlight javascript %}
|
||||
|
||||
var addrA = IP("1.2.3.4")
|
||||
var addrA = IP('1.2.3.4')
|
||||
|
||||
D("example.com", REG, DnsProvider("R53"),
|
||||
A("@", addrA), //1.2.3.4
|
||||
A("www", addrA + 1), //1.2.3.5
|
||||
D('example.com', REG, DnsProvider('R53'),
|
||||
A('@', addrA), //1.2.3.4
|
||||
A('www', addrA + 1), //1.2.3.5
|
||||
)
|
||||
{% endhighlight %}
|
||||
|
||||
|
@ -48,14 +48,14 @@ D("example.com", REG, DnsProvider("R53"),
|
|||
|
||||
{% highlight javascript %}
|
||||
|
||||
var dcA = IP("5.5.5.5");
|
||||
var dcB = IP("6.6.6.6");
|
||||
var dcA = IP('5.5.5.5');
|
||||
var dcB = IP('6.6.6.6');
|
||||
|
||||
// switch to dcB to failover
|
||||
var activeDC = dcA;
|
||||
|
||||
D("example.com", REG, DnsProvider("R53"),
|
||||
A("@", activeDC + 5), // fixed address based on activeDC
|
||||
D('example.com', REG, DnsProvider('R53'),
|
||||
A('@', activeDC + 5), // fixed address based on activeDC
|
||||
)
|
||||
{% endhighlight %}
|
||||
|
||||
|
@ -71,9 +71,9 @@ var GOOGLE_APPS_DOMAIN_MX = [
|
|||
MX('@', 10, 'alt4.aspmx.l.google.com.'),
|
||||
]
|
||||
|
||||
D("example.com", REG, DnsProvider("R53"),
|
||||
D('example.com', REG, DnsProvider('R53'),
|
||||
GOOGLE_APPS_DOMAIN_MX,
|
||||
A("@", "1.2.3.4")
|
||||
A('@', '1.2.3.4')
|
||||
)
|
||||
{% endhighlight %}
|
||||
|
||||
|
@ -81,20 +81,20 @@ D("example.com", REG, DnsProvider("R53"),
|
|||
|
||||
{% highlight javascript %}
|
||||
|
||||
D("example.com", REG, DnsProvider("R53"), DnsProvider("GCLOUD"),
|
||||
A("@", "1.2.3.4")
|
||||
D('example.com', REG, DnsProvider('R53'), DnsProvider('GCLOUD'),
|
||||
A('@', '1.2.3.4')
|
||||
)
|
||||
|
||||
// above zone uses 8 NS records total (4 from each provider dynamically gathered)
|
||||
// below zone will only take 2 from each for a total of 4. May be better for performance reasons.
|
||||
|
||||
D("example2.com", REG, DnsProvider("R53",2), DnsProvider("GCLOUD",2),
|
||||
A("@", "1.2.3.4")
|
||||
D('example2.com', REG, DnsProvider('R53',2), DnsProvider('GCLOUD',2),
|
||||
A('@', '1.2.3.4')
|
||||
)
|
||||
|
||||
// or set a Provider as a non-authoritative backup (don't register its nameservers)
|
||||
D("example3.com", REG, DnsProvider("R53"), DnsProvider("GCLOUD",0),
|
||||
A("@", "1.2.3.4")
|
||||
D('example3.com', REG, DnsProvider('R53'), DnsProvider('GCLOUD',0),
|
||||
A('@', '1.2.3.4')
|
||||
)
|
||||
|
||||
{% endhighlight %}
|
||||
|
|
Loading…
Reference in a new issue