This looks like it was a fun project! For anyone who wants to research the subject, the class of security vulnerabilities are called DNS tunneling.
Yes. I recently wrote a Lua-scriptable DNS server called redns[1] (which seems to be a pretty popular name for hobbyist DNS servers, BTW) only to test some of those attacks. [1] https://github.com/luismedel/redns
Whenever I see regexs hanging off the Internet, my heart skips a beat! :)