1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Fix highlighting

This commit is contained in:
Tom Limoncelli
2017-08-15 13:54:00 -04:00
parent ea3e2831a8
commit d15ef9f1a3

View File

@ -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: