I am surprised at how dismissive the blog post was about writing a CoreDNS plugin. That's what I used when building a similar service. I appreciated that CoreDNS allowed me to focus on the backend that provides RRs, without all the overhead or just using a DNS server library. Or, as others have said, PowerDNS with a SQL backend would have enabled this without any "invention" required. The library approach sounds like a major distraction, at least how it's presented on the blog.