unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#61485] [PATCH] In knot-service, shorten SOA refresh to maximum recommended in RFC 1912.
@ 2023-02-13 18:59 Felix Lechner via Guix-patches via
  2023-03-06  8:15 ` bug#61485: " 宋文武 via Guix-patches via
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Lechner via Guix-patches via @ 2023-02-13 18:59 UTC (permalink / raw)
  To: 61485; +Cc: Felix Lechner

The Knot DNS service in Guix uses two days, or 48 hours, for the SOA
refresh interval but that is outside the range of RFC 1912, which is
entitled "Common DNS Operational and Configuration Errors." [1]

Section 2.2 of RFC 1912 recommends a maximum of 12 hours for the SOA
refresh rate: "You can keep it short (20 mins to 2 hours) if you
aren't worried about a small increase in bandwidth used, or longer
(2-12 hours) if your Internet connection is slow or is started on
demand."

This commit sets the default refresh interval at the nearest value
recommended by the standard, which is 12 hours.

Due to the widespread adoption of NOTIFY messages between primary and
secondary DNS servers, the SOA refresh interval has arguably lost some
importance, but the Guix default should still be in line with the
standards.

Values outside the recommended range can provoke warning messages from
services commonly used to find bugs in DNS configurations, such as the
MX Toolbox Super Tool. [2]

[1] https://datatracker.ietf.org/doc/rfc1912/
[2] https://mxtoolbox.com/SuperTool.aspx


---
 gnu/services/dns.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/dns.scm b/gnu/services/dns.scm
index 50753b7ab6..32fb8c0664 100644
--- a/gnu/services/dns.scm
+++ b/gnu/services/dns.scm
@@ -114,7 +114,7 @@ (define-record-type* <zone-file>
   (serial  zone-file-serial
            (default 1))
   (refresh zone-file-refresh
-           (default (* 2 24 3600)))
+           (default (* 12 3600)))
   (retry   zone-file-retry
            (default (* 15 60)))
   (expiry  zone-file-expiry

base-commit: ee69b60426d4f87ea19e32f757f1e7415ae58879
-- 
2.39.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#61485: [PATCH] In knot-service, shorten SOA refresh to maximum recommended in RFC 1912.
  2023-02-13 18:59 [bug#61485] [PATCH] In knot-service, shorten SOA refresh to maximum recommended in RFC 1912 Felix Lechner via Guix-patches via
@ 2023-03-06  8:15 ` 宋文武 via Guix-patches via
  0 siblings, 0 replies; 2+ messages in thread
From: 宋文武 via Guix-patches via @ 2023-03-06  8:15 UTC (permalink / raw)
  To: Felix Lechner; +Cc: 61485-done

Felix Lechner <felix.lechner@lease-up.com> writes:

> The Knot DNS service in Guix uses two days, or 48 hours, for the SOA
> refresh interval but that is outside the range of RFC 1912, which is
> entitled "Common DNS Operational and Configuration Errors." [1]
> [..]

Pushed, thank you!




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-06  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 18:59 [bug#61485] [PATCH] In knot-service, shorten SOA refresh to maximum recommended in RFC 1912 Felix Lechner via Guix-patches via
2023-03-06  8:15 ` bug#61485: " 宋文武 via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).