mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-20 14:30:59 +08:00
c747498b87
* allowing multiple newBase ips * generate * only bundle helpers * generate change
12 lines
No EOL
427 B
JavaScript
12 lines
No EOL
427 B
JavaScript
var REG = NewRegistrar("Third-Party","NONE");
|
|
var CF = NewDSP("Cloudflare", "CLOUDFLAREAPI")
|
|
|
|
var TRANSFORM_INT = [
|
|
{low: "0.0.0.0", high: "1.1.1.1", newBase: "2.2.2.2" },
|
|
{low: "1.1.1.1", high: IP("2.2.2.2"), newBase: ["3.3.3.3","4.4.4.4",IP("5.5.5.5")]} ,
|
|
{low: "1.1.1.1", high: IP("2.2.2.2"), newIP: ["3.3.3.3","4.4.4.4",IP("5.5.5.5")]}
|
|
]
|
|
|
|
D("foo.com",REG,CF,
|
|
A("@","1.2.3.4",{transform: TRANSFORM_INT})
|
|
); |