HACKER Q&A
📣 ghoshbishakh

Self hosted DNS server that responds to queries with data from web API?


Hi HN community,

I'm looking for an open source DNS server that can respond to queries by fetching data from a web API that I will configure. I came across Technitium DNS Server, but I haven't tried it yet and I'm not sure if it meets our requirements.

Our goal is to scale https://pinggy.io horizontally, and to achieve this, we need a DNS server that can respond to queries with data from a database. Ideally, the DNS server would forward the query to a web API that we will create, and the web API will respond with the DNS response.

Do you know of any open source DNS servers that can do this? Any recommendations or tips would be greatly appreciated.

Thank you in advance!


  👤 jruohonen Accepted Answer ✓
I have trouble understanding the question, but have you started by evaluating e.g. Unbound?

https://unbound.docs.nlnetlabs.nl/en/latest/


👤 detaro
PowerDNS can do that. That said, I'd seriously consider an architecture that pushes the data to the DNS server proactively instead of making it query the API when requests come in.

👤 KomoD
I'd just make something myself, not too difficult