mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-10-27 14:37:29 +08:00
Fix highlighting
This commit is contained in:
parent
ea3e2831a8
commit
d15ef9f1a3
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ be very error prone. Therefore instead you maintain foo.com and
|
||||||
let IMPORT_TRANSFORM automatically generate bar.com.
|
let IMPORT_TRANSFORM automatically generate bar.com.
|
||||||
|
|
||||||
{% include startExample.html %}
|
{% include startExample.html %}
|
||||||
|
{% highlight html %}
|
||||||
|
|
||||||
foo.com:
|
foo.com:
|
||||||
one.foo.com. IN A 1.2.3.1
|
one.foo.com. IN A 1.2.3.1
|
||||||
|
|
@ -40,11 +41,13 @@ bar.com:
|
||||||
three.foo.com.bar.com. IN A 123.123.123.113
|
three.foo.com.bar.com. IN A 123.123.123.113
|
||||||
four.foo.com.bar.com. IN A 123.123.123.114
|
four.foo.com.bar.com. IN A 123.123.123.114
|
||||||
|
|
||||||
|
{%endhighlight%}
|
||||||
{% include endExample.html %}
|
{% include endExample.html %}
|
||||||
|
|
||||||
Here's how you'd implement this in DNSControl:
|
Here's how you'd implement this in DNSControl:
|
||||||
|
|
||||||
{% include startExample.html %}
|
{% include startExample.html %}
|
||||||
|
{% highlight js %}
|
||||||
|
|
||||||
var TRANSFORM_INT = [
|
var TRANSFORM_INT = [
|
||||||
// RANGE_START, RANGE_END, NEW_BASE
|
// RANGE_START, RANGE_END, NEW_BASE
|
||||||
|
|
@ -64,6 +67,7 @@ D("bar.com", .... ,
|
||||||
IMPORT_TRANSFORM(TRANSFORM_INT, 'foo.com', 300),
|
IMPORT_TRANSFORM(TRANSFORM_INT, 'foo.com', 300),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
{%endhighlight%}
|
||||||
{% include endExample.html %}
|
{% include endExample.html %}
|
||||||
|
|
||||||
Transform rules are: RANGE_START, RANGE_END, NEW_BASE. NEW_BASE may be:
|
Transform rules are: RANGE_START, RANGE_END, NEW_BASE. NEW_BASE may be:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue