Can be used like this:
```
berthub.eu 300 IN LUA A ";if(localwho:getPort() == 5300) then return '217.100.190.174'; else return '86.82.68.237'; end"
```
This, combined with some forwarding/iptables, means that queries that came in on 217.100.190.174 also get 217.100.190.174 as an answer. And same for 86.82.68.237.
In this way you can do some simple DNS-based dual homing.
resolver. This is a :class:`ComboAddress`.
``who``
IP address of requesting resolver as a :class:`ComboAddress`.
+``localwho``
+ IP address (including port) of socket on which the question arrived.
Functions available
-------------------
lua.writeVariable("zone", zone);
lua.writeVariable("zoneid", zoneid);
lua.writeVariable("who", dnsp.getInnerRemote());
+ lua.writeVariable("localwho", dnsp.getLocal());
lua.writeVariable("dh", (dnsheader*)&dnsp.d);
lua.writeVariable("dnssecOK", dnsp.d_dnssecOk);
lua.writeVariable("tcp", dnsp.d_tcp);