[GH-ISSUE #342] nxdomain responses include huge timeouts #188

Open
opened 2026-03-13 16:05:32 +03:00 by kerem · 2 comments
Owner

Originally created by @Wildcarde on GitHub (Jun 13, 2023).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/342

There doesn't appear to be a way to set minTTL for nxdomain replies at this time. This would be very helpful to prevent upstream dns servers from breaking how acme-dns works. I'm running into this issue currently with an infoblox based dhcp/dns server upstream. It holds onto the nxdomain reply for an hour+ and never checks back with acme-dns till it's too late and the letsencrypt request has expired.

Originally created by @Wildcarde on GitHub (Jun 13, 2023). Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/342 There doesn't appear to be a way to set minTTL for nxdomain replies at this time. This would be very helpful to prevent upstream dns servers from breaking how acme-dns works. I'm running into this issue currently with an infoblox based dhcp/dns server upstream. It holds onto the nxdomain reply for an hour+ and never checks back with acme-dns till it's too late and the letsencrypt request has expired.
Author
Owner

@apeschar commented on GitHub (Sep 13, 2023):

I believe that the last field in the SOA record should be set to a much lower value (eg, 1 or 60) to prevent NXDOMAIN responses from being cached for a long term. It's currently 86400, which may lead to NXDOMAIN responses being cached for up to a day.

https://github.com/joohoi/acme-dns/blob/master/dns.go#L65

<!-- gh-comment-id:1717973322 --> @apeschar commented on GitHub (Sep 13, 2023): I believe that the last field in the SOA record should be set to a much lower value (eg, `1` or `60`) to prevent NXDOMAIN responses from being cached for a long term. It's currently `86400`, which may lead to NXDOMAIN responses being cached for up to a day. https://github.com/joohoi/acme-dns/blob/master/dns.go#L65
Author
Owner

@joohoi commented on GitHub (Sep 14, 2023):

Good point, 60sec should be sufficient.

<!-- gh-comment-id:1719251986 --> @joohoi commented on GitHub (Sep 14, 2023): Good point, 60sec should be sufficient.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns#188
No description provided.