Show
Ignore:
Timestamp:
11/30/10 12:57:42 (2 years ago)
Author:
ahu
Message:

add 'setvariable()'

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/pdns-dns64/pdns/powerdns-example-script.lua

    r1737 r1743  
    6161                print(val.qtype, val.ttl) 
    6262        end 
     63         
    6364        rcode, ret=getFakeAAAARecords(domain, "fe80::21b:77ff:0:0") 
     65        setvariable() 
    6466        return rcode, ret 
    6567end      
     
    7476                then 
    7577                        val.content = '127.0.0.1' 
     78                        setvariable() 
    7679                end 
    7780                if val.qtype == pdns.A and matchnetmask(remoteip, "192.168.0.0/16") and matchnetmask(val.content, "85.17.219.0/24")  
    7881                then 
    7982                        val.content = string.gsub(val.content, "^85.17.219.", "192.168.219.", 1) 
     83                        setvariable() 
    8084                end 
    8185