[Pdns-users] Forward-zones being skipped via cache?

2012-05-30 Thread Ben C.
Hello All, I've been struggling this for days.. The point is to be able to 'replace' hostnames based on their nameservers. We have many uses for this - ad blocking and many large porn networks use the same nameservers (like ns1.dirtyxxx.com, just as a made-up example) I've been loops and loops -

[Pdns-users] nxdomain() prepending, not replacing

2012-05-21 Thread Ben C.
I'm not sure if I'm doing something incorrectly, or I broke something.. or.. ? I'm running debian wheezy, freshly upgraded, and have this in my lua script: function nxdomain (ip,domain,query_type) ips={} if query_type ~= pdns.A then return -1, ret end ips[1]={ query_type=pdns.A, content="1.2.3.4"