Skip to content

Commit 8558f01

Browse files
authored
release prep: 1.8.1 (#581)
Version to 1.8.1 in the binary, the config template, and the README's docker/Configuration headers; the benchmark section stays at the last-measured release by policy. The contrib config is regenerated from the template and verified byte-identical to what the binary writes. doc.go's feature list cited RFC 7816, obsoleted by RFC 9156 in 2021 — the config and README were already updated when the minimization mechanism moved to the RFC's probe-count budget; this catches the last reference. One modernization in the TTL clamp (max over an if). The prefetch-claim release considered for this release turned out to be already correct: processPrefetch releases the claim on every exit path via defer, and TestPrefetchWorkerReleasesClaimOnError pins it.
1 parent 55b8a2c commit 8558f01

6 files changed

Lines changed: 7 additions & 10 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $ docker run -d --name sdns -p 53:53 -p 53:53/udp ghcr.io/semihalev/sdns:latest
4545
Pin to a specific version (recommended for production):
4646

4747
```shell
48-
$ docker run -d --name sdns -p 53:53 -p 53:53/udp ghcr.io/semihalev/sdns:1.8.0
48+
$ docker run -d --name sdns -p 53:53 -p 53:53/udp ghcr.io/semihalev/sdns:1.8.1
4949
```
5050

5151
#### Docker Compose
@@ -136,7 +136,7 @@ example.com. 0 CH HINFO "Host" "IPv6:[2001:500:8f::53]:53 rtt:147ms health:[GOO
136136
example.com. 0 CH HINFO "Host" "IPv6:[2001:500:8d::53]:53 rtt:148ms health:[GOOD]"
137137
```
138138
139-
## Configuration (v1.8.0)
139+
## Configuration (v1.8.1)
140140
141141
| Key | Description |
142142
| -------------------- | ------------------------------------------------------------------------------------------------------------------- |

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/semihalev/zlog/v2"
1919
)
2020

21-
const configver = "1.8.0"
21+
const configver = "1.8.1"
2222

2323
// Config type.
2424
type Config struct {

contrib/linux/sdns.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Configuration file version (not SDNS version)
3-
version = "1.8.0"
3+
version = "1.8.1"
44

55
# ============================
66
# Basic Server Configuration

doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ metrics and operational endpoints (blocklist management, cache purge).
1616
- Iterative recursive resolution with DNSSEC validation, NSEC/NSEC3
1717
denial-of-existence proofs, and RFC 5011 automatic root trust-anchor
1818
maintenance.
19-
- QNAME minimization (RFC 7816) for query privacy.
19+
- QNAME minimization (RFC 9156) for query privacy.
2020
- High-performance caching: positive and negative caches, prefetch of
2121
popular entries, and EDNS Client Subnet (ECS, RFC 7871) aware keying.
2222
- Forwarding to upstream resolvers over UDP, TCP, DoT, and DoH.

middleware/cache/cache.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,10 +1815,7 @@ func clampTTLsToCut(res *dns.Msg, cutUntil time.Time) {
18151815
if cutUntil.IsZero() {
18161816
return
18171817
}
1818-
lease := time.Until(cutUntil)
1819-
if lease < 0 {
1820-
lease = 0
1821-
}
1818+
lease := max(time.Until(cutUntil), 0)
18221819
leaseSecs := uint32(lease.Seconds())
18231820
clamp := func(rrs []dns.RR) {
18241821
for _, rr := range rrs {

sdns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/spf13/cobra"
2222
)
2323

24-
const version = "1.8.0"
24+
const version = "1.8.1"
2525

2626
var (
2727
cfgPath string

0 commit comments

Comments
 (0)