Changes between Version 2 and Version 3 of Lua

Show
Ignore:
Timestamp:
04/19/12 13:01:23 (13 months ago)
Author:
peter
Comment:

note postresolve

Legend:

Unmodified
Added
Removed
Modified
  • Lua

    v2 v3  
    2929}}} 
    3030== NXDOMAIN 'redirect' == 
     31 
     32Note: this should probably be rewritten as a postresolve script after the release of Recursor 3.4. 
     33 
    3134This will return an A record if a query for IN A or ANY www.powerdns.org would otherwise give an NXDOMAIN response. 
    3235{{{ 
     
    6770== Furnish private IP address inside LAN == 
    6871 
     72Note: this should probably be rewritten as a postresolve script after the release of Recursor 3.4. 
     73 
    6974Here we use "preresolve" to return a private IP address in the 192.168.x.x range for a host when inside a LAN. 
    7075For example, the DynDNS-managed hostname "mymachine.homelinux.org" should yield the public IP address of  
    7176the LAN gateway when queried on the Internet (where the query goes to the DynDNS nameservers), but 192.168.0.10 
    72 when queried on the LAN (where the query should go to locally configured pdns-recursor). For fun and LUA 
     77when queried on the LAN (where the query should go to locally configured pdns-recursor). For fun and Lua 
    7378training, we also translate the numeric query type to its cleartext representation when logging. 
    7479