github.com/kurthockenbury/dnscontrol@v0.2.8/pkg/js/parse_tests/006-transforms.js (about) 1 var REG = NewRegistrar("Third-Party","NONE"); 2 var CF = NewDnsProvider("Cloudflare", "CLOUDFLAREAPI") 3 4 var TRANSFORM_INT = [ 5 {low: "0.0.0.0", high: "1.1.1.1", newBase: "2.2.2.2" }, 6 {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")]} , 7 {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")]} 8 ] 9 10 D("foo.com",REG,DnsProvider(CF), 11 A("@","1.2.3.4",{transform: TRANSFORM_INT}) 12 );