RATATOSK
← All releases

CoreDNSv1.13.2

Security 1Breaking changes 4Deprecations 1Important fixes 5Enhancements 6Other changes 6

Get CoreDNS alerts

Email is sent weekly only when there are changes to check; critical security advisories are sent immediately.

Security1

Infinite busy loop in forward retries fixed

Affectssetups using the forward plugin(Inferred)

An immediate upstream connection error, such as a TCP RST, could leave the fails counter unchanged and keep the retry loop running, causing syscall thrashing. max_connect_attempts can cap connection attempts per DNS request when set above 0; its default of 0 imposes no cap.

Show release-note lines
* plugin/forward: Prevent busy loop on connection err (https://github.com/coredns/coredns/pull/7704)
github.com/coredns/coredns/releases/tag/v1.13.2

Breaking changes4

Synchronized map access in plugin/pkg/uniq; New() returns *U

Affectsthird-party plugins using plugin/pkg/uniq with New() explicitly declared as uniq.U

During reloads, concurrent goroutines accessing the internal map could trigger a data race.

Evidence“var u uniq.U = uniq.New() // ❌ Won't compile with new version” coredns/coredns/pull/7707 ↗
Show release-note lines
* core: Fix data race with sync.RWMutex for uniq (https://github.com/coredns/coredns/pull/7707)
github.com/coredns/coredns/releases/tag/v1.13.2

Auto plugin rejects REGEXP patterns over 10,000 characters

Affectsauto plugin configurations with REGEXP patterns longer than 10,000 characters(Inferred)

Very large regex patterns in the Corefile could cause CoreDNS to run out of memory; patterns over the limit now return regexp too large.

Evidence“A very large regex for the auto plugin in the Corefile could cause CoreDNS to OOM. This change adds an artificial limit of 10k characters for the regex pattern.” coredns/coredns/pull/7737 ↗
Show release-note lines
* plugin/auto: Limit regex length (https://github.com/coredns/coredns/pull/7737)
github.com/coredns/coredns/releases/tag/v1.13.2

forward rejects NOERROR as a failover criterion

AffectsCoreDNS configurations using failover NOERROR(Inferred)

Previously, the parser did not recognize NOERROR as a failover criterion, so configurations using failover NOERROR were not rejected by this check. They now fail during configuration parsing.

Evidence“Previously the parsing logic in the `forward` plugin setup failed to recognise when `NOERROR` was used as a failover RCODE criteria. The check was in the wrong code branch. This PR fixes it and adds validation tests.” coredns/coredns/pull/7622 ↗
Show release-note lines
* plugin/forward: Disallow NOERROR in failover (https://github.com/coredns/coredns/pull/7622)
github.com/coredns/coredns/releases/tag/v1.13.2

multisocket NUM_SOCKETS capped at 1024

Affectsmultisocket configurations with NUM_SOCKETS above 1024(Inferred)

Previously, an unbounded NUM_SOCKETS value could make CoreDNS create excessive listeners and run out of memory at startup.

Evidence“+* **NUM_SOCKETS** - the number of servers that will listen on one port. Default value is equal to GOMAXPROCS. Maximum value is 1024.” coredns/coredns/pull/7615 ↗
Show release-note lines
* plugin/multisocket: Cap num sockets to prevent OOM (https://github.com/coredns/coredns/pull/7615)
github.com/coredns/coredns/releases/tag/v1.13.2

Deprecations1

Correctly spelled MaximumDefaultTTL constant added

AffectsGo code using the dnsutil package’s exported TTL constant(Inferred)
Removed innot stated

The old MaximumDefaulTTL name remains available as a deprecated alias with the same value, 1 * time.Hour. The cache package now refers to MaximumDefaultTTL.

Show release-note lines
* plugin/cache: Correct spelling of MaximumDefaultTTL in cache and dnsutil packages (https://github.com/coredns/coredns/pull/7678)
github.com/coredns/coredns/releases/tag/v1.13.2

Important fixes5

  • Dnstap flushing and socket redial fixed
    Affectssetups using the Dnstap plugin

    When its queue stayed full, repeated timer resets prevented flushing and delayed reports of dropped messages; if its output socket was unreachable at startup while CoreDNS stayed busy, it could go hours without redialing. It now runs flush, error-reporting, and redial actions every second while the queue stays full, and a missing encoder returns an error for each failed message to trigger a socket redial.

    * plugin/dnstap: Better error handling (redial & logging) when Dnstap is busy (https://github.com/coredns/coredns/pull/7619)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • DNS-over-QUIC reload crash fixed
    AffectsDNS-over-QUIC setups

    During reloads that reuse a socket and leave s.quicListener nil, the server could crash and panic. It now initializes s.quicListener in ServePacket when nil.

    * core: Prevent QUIC reload panic by lazily initializing the listener (https://github.com/coredns/coredns/pull/7680)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • Cache background-prefetch metadata race fixed
    Affectssetups using the cache plugin's background prefetch

    When other plugins in the chain concurrently accessed or wrote request-scoped metadata during background prefetch, reads could race with writes and cause a fatal concurrent-map crash. Prefetch now uses a fresh metadata context, isolating its writes from reads of the original request's metadata map.

    * plugin/cache: Isolate metadata in prefetch goroutine (https://github.com/coredns/coredns/pull/7631)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • CNAME RegexMatch rules now precompile regexes at setup
    AffectsCNAME rewrite rules using the RegexMatch match type(Inferred)

    Previously, an invalid pattern could panic when its rule was first invoked; it now returns a setup error. Valid patterns are no longer recompiled on each request, improving plugin performance.

    * plugin/rewrite: Pre-compile CNAME rewrite regexp (https://github.com/coredns/coredns/pull/7697)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • Secondary plugin reload goroutine leak fixed
    Affectssecondary plugin zones with TransferFrom configured(Inferred)

    When the secondary plugin reloaded for a zone with TransferFrom configured, its update goroutine was not closed and could leak. During reload shutdown, the goroutine now stops its tickers and returns.

    * plugin/secondary: Fix reload causing secondary plugin goroutine to leak (https://github.com/coredns/coredns/pull/7694)
    github.com/coredns/coredns/releases/tag/v1.13.2

Enhancements6

  • DNS over HTTP/3 server support

    To use Configure an https3:// server address to use DoH3.

    * core: Add basic support for DoH3 (https://github.com/coredns/coredns/pull/7677)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • Per-destination TLS server names for the forward plugin

    To use Specify the expected server name in each TLS destination URI, and omit tls_servername when using per-destination SNI.

    * plugin/forward: Added support for per-nameserver TLS SNI (https://github.com/coredns/coredns/pull/7633)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • Per-request upstream connection-attempt limit in the forward plugin

    To use Set max_connect_attempts to a positive value to enable a per-request cap; its default of 0 means no cap.

    * plugin/forward: Add max connect attempts knob (https://github.com/coredns/coredns/pull/7722)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • ASN database and metadata support in the geoip plugin

    To use An ASN .mmdb database must be configured.

    * plugin/geoip: Add ASN schema support (https://github.com/coredns/coredns/pull/7730)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • GeoIP City metadata gains subdivision codes
    * plugin/geoip: Add support for subdivisions (https://github.com/coredns/coredns/pull/7728)
    github.com/coredns/coredns/releases/tag/v1.13.2
  • Nomad plugin gains service filtering

    To use Configure the Nomad plugin’s filter setting; it accepts Nomad filtering syntax and defaults to "".

    * plugin/nomad: Support service filtering (https://github.com/coredns/coredns/pull/7724)
    github.com/coredns/coredns/releases/tag/v1.13.2
Other changes6

Summaries are produced by AI, so they can be wrong, and they are provided without warranty.