changeset 99 | 2d03350613c4 |
parent 96 | c1f4edf3bea7 |
child 336 | e4d5a1d3ff44 |
--- a/mod_srvinjection/mod_srvinjection.lua Wed Nov 25 21:36:21 2009 +0100 +++ b/mod_srvinjection/mod_srvinjection.lua Thu Nov 26 20:23:20 2009 +0500 @@ -31,6 +31,9 @@ handler(mapping); return; end + elseif qtype == "A" and (qname == "localhost." or qname == "127.0.0.1.") then + handler({{ a = "127.0.0.1" }}); + return; end return original_lookup(handler, qname, qtype, qclass); end