Changeset 1743
- Timestamp:
- 11/30/10 12:57:42 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/pdns-dns64/pdns/powerdns-example-script.lua
r1737 r1743 61 61 print(val.qtype, val.ttl) 62 62 end 63 63 64 rcode, ret=getFakeAAAARecords(domain, "fe80::21b:77ff:0:0") 65 setvariable() 64 66 return rcode, ret 65 67 end … … 74 76 then 75 77 val.content = '127.0.0.1' 78 setvariable() 76 79 end 77 80 if val.qtype == pdns.A and matchnetmask(remoteip, "192.168.0.0/16") and matchnetmask(val.content, "85.17.219.0/24") 78 81 then 79 82 val.content = string.gsub(val.content, "^85.17.219.", "192.168.219.", 1) 83 setvariable() 80 84 end 81 85