PowerDNS has a feature that lets you configure a LUA script that modifies the behavior during resolution. You can find some examples here: https://github.com/PowerDNS/pdns/tree/master/pdns/recursordist/examples
Letting a user take advantage of this would be awesome.