Changes between Version 2 and Version 3 of Lua
- Timestamp:
- 04/19/12 13:01:23 (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Lua
v2 v3 29 29 }}} 30 30 == NXDOMAIN 'redirect' == 31 32 Note: this should probably be rewritten as a postresolve script after the release of Recursor 3.4. 33 31 34 This will return an A record if a query for IN A or ANY www.powerdns.org would otherwise give an NXDOMAIN response. 32 35 {{{ … … 67 70 == Furnish private IP address inside LAN == 68 71 72 Note: this should probably be rewritten as a postresolve script after the release of Recursor 3.4. 73 69 74 Here we use "preresolve" to return a private IP address in the 192.168.x.x range for a host when inside a LAN. 70 75 For example, the DynDNS-managed hostname "mymachine.homelinux.org" should yield the public IP address of 71 76 the 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 L UA77 when queried on the LAN (where the query should go to locally configured pdns-recursor). For fun and Lua 73 78 training, we also translate the numeric query type to its cleartext representation when logging. 74 79