From: tcely Date: Thu, 3 Aug 2017 08:54:34 +0000 (-0400) Subject: Corrected host-0 and host-1 records. X-Git-Tag: dnsdist-1.4.0-rc3~42^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9ea69a02c9524434cf891a92a3d0857e50c1e86;p=thirdparty%2Fpdns.git Corrected host-0 and host-1 records. I initially didn't notice that these were being overwritten, there are just so many host-N entries in example.com. --- diff --git a/modules/luabackend/test/powerdns-luabackend.lua b/modules/luabackend/test/powerdns-luabackend.lua index 3e2653aaa9..42cf54dcdb 100644 --- a/modules/luabackend/test/powerdns-luabackend.lua +++ b/modules/luabackend/test/powerdns-luabackend.lua @@ -332,17 +332,22 @@ end domains[origin].records["toomuchinfo-b."..origin] = tab tab = nil -for n = 0, 19999, 1 do - domains[origin].records["host-"..n.."."..origin] = { - {qtype = "A", ttl = ttl, content = "192.168.1."..( n % 256)} - } -end domains[origin].records["host-0."..origin] = { + {qtype = "A", ttl = ttl, content = "192.168.1.0"} {qtype = "EUI48", ttl = ttl, content = "00-50-56-9b-00-e7"}, } domains[origin].records["host-1."..origin] = { + {qtype = "A", ttl = ttl, content = "192.168.1.1"} {qtype = "EUI48", ttl = ttl, content = "00-50-56-9b-00-e7-7e-57"}, } +local hnfmt = "host-%d.%s" +local ipfmt = "192.168.1.%d" +for n = 2, 19999, 1 do + domains[origin].records[hnfmt:format(n, origin)] = { + {qtype = "A", ttl = ttl, content = ipfmt:format( n % 256)} + } +end + domains[origin].records["rhs-at-expansion."..origin] = { {qtype = "CNAME", ttl = ttl, content = origin}, }