When looking more closely at the code, this violates RFC in multiple ways, no SOA record, answers for NS are catch-all by qtype, resolve() doesn't modify authority or additional sections, they're not implemented. ANY qtype not implemented.
I'm not a fan of nodata responses with empty authority, same as nxdomain responses.
Missing TCP listener. While not required by any RFC, some ccTLD Registries enforce udp+tcp before delegating, like .de