]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Added more comments.
authortcely <tcely@users.noreply.github.com>
Thu, 3 Aug 2017 09:18:33 +0000 (05:18 -0400)
committertcely <tcely@users.noreply.github.com>
Thu, 24 May 2018 17:33:47 +0000 (13:33 -0400)
Describe whey the SOA records were not being used and why
host-N.example.com records were handled differently.

modules/luabackend/test/powerdns-luabackend.lua

index 70a17b92f43130350c89ad5f4aa6807d68cab5e4..9540183cc873ad4b49fd87195900c4287aa85ed9 100644 (file)
@@ -47,6 +47,7 @@ domains[domains[origin].domain_id] = domains[origin]
 
 
 domains[origin].records[origin] = {
+    -- This is not used since the getsoa function us using the SOA table instead.
     --{qtype = "SOA", ttl = domains[origin].soa.ttl, content = content_from_soatab(domains[origin].soa)},
     {qtype = "NS", ttl = ttl, content = "ns1."..origin},
     {qtype = "NS", ttl = ttl, content = "ns2."..origin},
@@ -152,6 +153,7 @@ domains[domains[origin].domain_id] = domains[origin]
 
 
 domains[origin].records[origin] = {
+    -- This is not used since the getsoa function us using the SOA table instead.
     --{qtype = "SOA", ttl = domains[origin].soa.ttl, content = content_from_soatab(domains[origin].soa)},
     {qtype = "NS", ttl = ttl, content = "ns1."..origin},
     {qtype = "NS", ttl = ttl, content = "ns2."..origin},
@@ -341,6 +343,8 @@ domains[origin].records["host-1."..origin] = {
     {qtype = "EUI48", ttl = ttl, content = "00-50-56-9b-00-e7-7e-57"},
 }
 --[=[
+-- Disabled the in-memory storage since it was slower than computing
+-- these as needed. See the list/lookup functions below.
 local hnfmt = "host-%d.%s"
 local ipfmt = "192.168.1.%d"
 for n = 2, 19999, 1 do