Mail-in-a-Box includes a check like this in its setup script, actually. [I'm the guy behind the project.]
344 karma · joined April 23, 2014
Mail-in-a-Box uses 'nsd', which is a non-recursive DNS server. I don't think it can be used to relay DNS queries in a DDOS attack. But if you meant something else, please let me know and/or file a ticket (I don't think I'll be looking here for replies).
https://github.com/JoshData/mailinabox/commit/ec11241a7a619a...