mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-04 12:14:23 +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.
|
||||
|
||||
{% include startExample.html %}
|
||||
{% highlight html %}
|
||||
|
||||
foo.com:
|
||||
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
|
||||
four.foo.com.bar.com. IN A 123.123.123.114
|
||||
|
||||
{%endhighlight%}
|
||||
{% include endExample.html %}
|
||||
|
||||
Here's how you'd implement this in DNSControl:
|
||||
|
||||
{% include startExample.html %}
|
||||
{% highlight js %}
|
||||
|
||||
var TRANSFORM_INT = [
|
||||
// RANGE_START, RANGE_END, NEW_BASE
|
||||
|
@ -64,6 +67,7 @@ D("bar.com", .... ,
|
|||
IMPORT_TRANSFORM(TRANSFORM_INT, 'foo.com', 300),
|
||||
);
|
||||
|
||||
{%endhighlight%}
|
||||
{% include endExample.html %}
|
||||
|
||||
Transform rules are: RANGE_START, RANGE_END, NEW_BASE. NEW_BASE may be:
|
||||
|
|
Loading…
Add table
Reference in a new issue