I am trying to do something DNS isn't really meant for, so I won't be surprised if this isn't possible. I have a domain, and I've set up an NS record, so I can resolve queries for subdomains using my own server. I need to dynamically generate TXT records based on what subdomain is being resolved. Is this possible, and if so, what library/software can I use? I'd prefer Python, but any language works.

1 Answer 1


I ended up using a PowerDNS pipe, written in bash, based on xip.io's source code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.