TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
4.25k stars 418 forks source link

[Feature Request] Allow specific domains/records to bypass cache #928

Closed NebulaMods closed 3 months ago

NebulaMods commented 4 months ago

It would be cool if Technitium could disable caching for a specific domain, record, or even zone.

This came to my mind for doing ACME DNS challenges for wildcard certificates, cache can cause some issues on the TXT records. So having the ability to whitelist said record, would make things simpler, and Adguard Home also has this ability if I am not mistaken.

Hemsby commented 4 months ago

I set the TTL for this to 0 for this reason. Only for this records. Stops clients and others caching it.

ShreyasZare commented 4 months ago

Thanks for the request. Adding such an option will actually be too complex to add and configure. Instead, I would suggest that you use the HTTP API to delete cache for specific domain name in your cert renewal process/script. You will need to generate a auth token from the admin panel to use with that HTTP GET call.

NebulaMods commented 4 months ago

I set the TTL for this to 0 for this reason. Only for this records. Stops clients and others caching it.

Ah, this is smart. I didn't think of that.

Thanks for the request. Adding such an option will actually be too complex to add and configure. Instead, I would suggest that you use the HTTP API to delete cache for specific domain name in your cert renewal process/script. You will need to generate a auth token from the admin panel to use with that HTTP GET call.

Oh okay, thanks for the tip.