Miek Gieben
3126b78269
Merge branch 'master' of github.com:miekg/dns
2025-12-16 10:19:59 +01:00
Miek Gieben
96ab0dcc53
README: talk about v1/v2 status
...
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-12-16 10:19:54 +01:00
Miek Gieben
49a9cee9c0
Release 1.1.69
v1.1.69
2025-12-11 17:10:38 +01:00
Brian Shea
66f2f27360
fix EDNS0 flags and MBZ in String() output ( #1693 )
2025-12-11 17:10:18 +01:00
zjj
acb3aba38e
optimized EDNS0_SUBNET pack, reducing make() calls ( #1692 )
2025-12-11 16:10:47 +01:00
Ilya Kulakov
74d2ba14af
MsgInvalidFunc: Make DefaultMsgInvalidFunc a variable. ( #1690 )
...
For parity with DefaultMsgAcceptFunc that is a variable.
Signed-off-by: Ilya Kulakov <kulakov.ilya@gmail.com>
2025-12-11 16:06:29 +01:00
Miek Gieben
b39ef96333
Update deps ( #1688 )
...
Mechanical change
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-11-13 17:05:55 +01:00
Steffen Sassalla
a0f8faa249
fix(test): Increase RSA key length for sig0 ( #1682 )
2025-10-10 11:02:42 +02:00
Steffen Sassalla
f15b2dd5e7
feat(edns0): Add zoneversion option from RFC9660 ( #1680 )
2025-10-09 16:40:44 +02:00
dependabot[bot]
f640e4b369
Bump the all group across 1 directory with 4 updates ( #1679 )
...
Bumps the all group with 3 updates in the / directory: [golang.org/x/net](https://github.com/golang/net ), [golang.org/x/sync](https://github.com/golang/sync ) and [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/net` from 0.42.0 to 0.44.0
- [Commits](https://github.com/golang/net/compare/v0.42.0...v0.44.0 )
Updates `golang.org/x/sync` from 0.16.0 to 0.17.0
- [Commits](https://github.com/golang/sync/compare/v0.16.0...v0.17.0 )
Updates `golang.org/x/sys` from 0.34.0 to 0.36.0
- [Commits](https://github.com/golang/sys/compare/v0.34.0...v0.36.0 )
Updates `golang.org/x/tools` from 0.35.0 to 0.37.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.35.0...v0.37.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.44.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/sync
dependency-version: 0.17.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/sys
dependency-version: 0.36.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/tools
dependency-version: 0.37.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-08 20:03:27 +02:00
jkerdreux-imt
294d37389c
Added OwNS (NS for VPN users) ( #1674 )
2025-09-20 08:51:50 +02:00
Miek Gieben
d495d33297
update readme some more
...
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-09-01 10:26:24 +02:00
Miek Gieben
4145b39037
Merge branch 'master' of github.com:miekg/dns
2025-08-18 07:30:20 +02:00
Miek Gieben
3098189c14
Add notice about dnsv2 in the readme
...
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-08-18 07:30:16 +02:00
Sami Kerola
b01620ea8d
future proof rsa key length to match minimum allowed ( #1671 )
...
Since go1.24.0 the minimum key lenth is 1024. That becomes obvious when
generate key error is handled, and related error is printed. For example:
dnssec_test.go:134: failure to generate private key: crypto/rsa: 512-bit
keys are insecure (see https://go.dev/pkg/crypto/rsa#hdr-Minimum_key_size )
Signed-off-by: Sami Kerola <kerolasa@cloudflare.com>
2025-08-13 15:13:29 +02:00
dependabot[bot]
28c618b3a0
Bump the all group with 4 updates ( #1664 )
...
Bumps the all group with 4 updates: [golang.org/x/net](https://github.com/golang/net ), [golang.org/x/sync](https://github.com/golang/sync ), [golang.org/x/sys](https://github.com/golang/sys ) and [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/net` from 0.40.0 to 0.42.0
- [Commits](https://github.com/golang/net/compare/v0.40.0...v0.42.0 )
Updates `golang.org/x/sync` from 0.14.0 to 0.16.0
- [Commits](https://github.com/golang/sync/compare/v0.14.0...v0.16.0 )
Updates `golang.org/x/sys` from 0.33.0 to 0.34.0
- [Commits](https://github.com/golang/sys/compare/v0.33.0...v0.34.0 )
Updates `golang.org/x/tools` from 0.33.0 to 0.35.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.33.0...v0.35.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.42.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/sync
dependency-version: 0.16.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/sys
dependency-version: 0.34.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/tools
dependency-version: 0.35.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-03 18:16:24 +02:00
Oli
6c4c3f4611
RFC9567 report channel ( #1658 )
...
* attempt at implementing RFC 9567 Error Reporting
* we do not need to initialize a compression map
* mention RFC 9567 in README
* remove error message prefix like in 09e0436
2025-08-03 18:13:43 +02:00
Miek Gieben
54c180dc19
Release 1.1.68
v1.1.68
2025-08-03 17:58:10 +02:00
Miek Gieben
b52b836ee1
Revert "Add ResponseWriter.Net function ( #1651 )" ( #1665 )
...
This reverts commit 96a6b9c19dd7b14558793fa557a62cfd3da5282d.
(not backwards compatible)
2025-08-03 17:57:34 +02:00
Miek Gieben
330db332dd
Release 1.1.67
v1.1.67
2025-07-09 14:26:46 +02:00
Miek Gieben
09e0436f4a
Error: change a whole bunch error messages' prefix ( #1657 )
...
* Error: change a whole bunch error messages' prefix
Long ago we started using 'bad ...' as the error messages, the "dns:"
prefix is used for panic's not in normal errors, remove are replace a
whole bunch of "dns:" with "bad ..."
Signed-off-by: Miek Gieben <miek@miek.nl>
* Error: change a whole bunch error messages' prefix
Long ago we started using 'bad ...' as the error messages, the "dns:"
prefix is used for panic's not in normal errors, remove are replace a
whole bunch of "dns:" with "bad ..."
Signed-off-by: Miek Gieben <miek@miek.nl>
* Use "bad" here too and use terminoloy from Msg struct
Extra instead of Ar count
Signed-off-by: Miek Gieben <miek@miek.nl>
---------
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-07-09 14:25:16 +02:00
Eric Skoglund
186ccfbcd9
Annotate unpack* function errors with where the error happened. ( #1590 )
...
This commit adds annotations to the error message when an error occurs
during unpacking of a DNS message, the annotation will give detiail on
where in the DNS message the unpacking error occured at. This helps to
improve the debugability of such errors.
Co-authored-by: Eric Skoglund <eric.skoglund@internetstiftelsen.se>
2025-07-09 14:08:50 +02:00
dependabot[bot]
4669827139
Bump the all group with 4 updates ( #1653 )
...
Bumps the all group with 4 updates: [golang.org/x/net](https://github.com/golang/net ), [golang.org/x/sync](https://github.com/golang/sync ), [golang.org/x/sys](https://github.com/golang/sys ) and [golang.org/x/tools](https://github.com/golang/tools ).
Updates `golang.org/x/net` from 0.39.0 to 0.40.0
- [Commits](https://github.com/golang/net/compare/v0.39.0...v0.40.0 )
Updates `golang.org/x/sync` from 0.13.0 to 0.14.0
- [Commits](https://github.com/golang/sync/compare/v0.13.0...v0.14.0 )
Updates `golang.org/x/sys` from 0.32.0 to 0.33.0
- [Commits](https://github.com/golang/sys/compare/v0.32.0...v0.33.0 )
Updates `golang.org/x/tools` from 0.32.0 to 0.33.0
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.32.0...v0.33.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-version: 0.40.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/sync
dependency-version: 0.14.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/sys
dependency-version: 0.33.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
- dependency-name: golang.org/x/tools
dependency-version: 0.33.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-09 14:02:40 +02:00
Brian Shea
96a6b9c19d
Add ResponseWriter.Net function ( #1651 )
...
* Add ResponseWriter.Net function
* rename Net to Network
2025-05-31 21:54:42 +02:00
Miek Gieben
10d76bc36d
Release 1.1.66
v1.1.66
2025-05-07 19:28:25 +02:00
Daniel
ed312a384c
Fix logic in xfr ReadMsg + add test ( #1649 )
2025-04-23 19:55:41 +02:00
Miek Gieben
27318b9ae1
RFC 8490: Implement DSO type registry
...
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-04-20 09:47:15 +02:00
Miek Gieben
01abd80e27
DSO: Use Stateful as the suffix
...
DSO is the acronym from rfc 8490, but use the more wordly Stateful, this
allows for a nicer opcode name RcodeStateful and later for a Stateful
(StatefulType?) table registering DSO Type Code Registry.
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-04-20 09:37:03 +02:00
Rob Gill
64211b39d1
Add the rcode DSO-TYPE Not Implemented / RFC8490 ( #1648 )
...
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
2025-04-20 09:22:51 +02:00
Miek Gieben
8ec9f67469
Upgrade all deps ( #1647 )
...
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-04-09 19:50:27 +02:00
Miek Gieben
8a570c6b43
A comment concerning newline while scanning ( #1645 )
...
* Add explaning comment
explain how a newline can end up in a domain name while scanning a zonefile
Signed-off-by: Miek Gieben <miek@miek.nl>
* also use 1.24 in the build matrix
Signed-off-by: Miek Gieben <miek@miek.nl>
---------
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-04-06 16:46:24 +02:00
taoso
739cf21247
Return error for empty target ( #1627 )
...
* Return error for empty target
* The @ is more important then this corner case and also happens more often
2025-04-06 16:41:54 +02:00
Miek Gieben
8b1c521bca
Release 1.1.65
v1.1.65
2025-04-06 16:24:20 +02:00
Viktor Oreshkin
42d8cc507b
Avoid sendmsg control messages on darwin ( #1643 )
...
sendmsg with PKTINFO is broken on darwin, so don't use it
udp_windows is renamed to udp_no_control since it's no longer exlusive
to windows, and is used on darwin too
2025-03-28 16:07:47 +01:00
Miek Gieben
ca3b34e08b
Document how to create RRs without rdata ( #1642 )
...
Put docs on the ANY type, also reference this from the dynamic updates
stuff.
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-03-19 15:42:15 +01:00
Miek Gieben
f83d075be8
Release 1.1.64
v1.1.64
2025-03-18 16:56:14 +01:00
frcroth
d912518784
Add RESINFO rr ( #1641 )
...
* Add RESINFO rr
* Update scan_rr.go
---------
Co-authored-by: Miek Gieben <miek@miek.nl>
2025-03-18 12:55:06 +01:00
Christian Elmerot
8d0c4128de
Add support for Compact Answers OK flag in EDNS ( #1639 )
...
Compact Answers OK flag is a signal that a queryer or server understand
and can validate Compact Denial of Existance answers allowing RCODE
NXDOMAIN restoration with single NSEC/NSEC3.
Flag is allocated by IANA: https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-13
Compact Denial of Existance: https://www.iana.org/go/draft-ietf-dnsop-compact-denial-of-existence-07
Co-authored-by: Christian Elmerot <elmerot@cloudflare.com>
2025-03-12 19:03:33 +01:00
Stéphane Bortzmeyer
6425a084b8
Add the check-soa program, which uses the library ( #1638 )
...
Co-authored-by: Stephane Bortzmeyer <stephane+framagit@bortzmeyer.org>
2025-03-10 19:52:10 +01:00
Miek Gieben
1c19e49014
Manually run a go get -u
...
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-02-24 15:21:19 +01:00
Miek Gieben
494e4d28eb
Merge branch 'master' of github.com:miekg/dns
2025-02-24 15:20:39 +01:00
Miek Gieben
37f4827e1c
Try to group the dependabot prs
...
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-02-24 15:20:36 +01:00
dependabot[bot]
75e8f27ccd
Bump golang.org/x/sync from 0.7.0 to 0.11.0 ( #1635 )
...
Bumps [golang.org/x/sync](https://github.com/golang/sync ) from 0.7.0 to 0.11.0.
- [Commits](https://github.com/golang/sync/compare/v0.7.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sync
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-24 15:14:14 +01:00
Miek Gieben
72fe95ac97
SVCB is no RFC 9460. ( #1636 )
...
Closes #1628
Signed-off-by: Miek Gieben <miek@miek.nl>
2025-02-22 13:01:06 +01:00
dependabot[bot]
b911878db3
Bump golang.org/x/net from 0.31.0 to 0.34.0 ( #1631 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.31.0 to 0.34.0.
- [Commits](https://github.com/golang/net/compare/v0.31.0...v0.34.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-22 12:51:47 +01:00
dependabot[bot]
b5cf0597b8
Bump golang.org/x/sys from 0.27.0 to 0.29.0 ( #1632 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.27.0 to 0.29.0.
- [Commits](https://github.com/golang/sys/compare/v0.27.0...v0.29.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-22 12:51:33 +01:00
Miek Gieben
97c29ffb8f
Release 1.1.63
v1.1.63
2025-01-24 12:05:25 +01:00
dependabot[bot]
c705e5aa58
Bump golang.org/x/sys from 0.23.0 to 0.27.0 ( #1619 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.23.0 to 0.27.0.
- [Commits](https://github.com/golang/sys/compare/v0.23.0...v0.27.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-24 11:34:30 +01:00
dependabot[bot]
fb0c220a7f
Bump golang.org/x/net from 0.28.0 to 0.31.0 ( #1622 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.28.0 to 0.31.0.
- [Commits](https://github.com/golang/net/compare/v0.28.0...v0.31.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-24 11:34:03 +01:00
Raymond Nook
ca39c8b728
fix: input validation for RRSIG.Verify() ( #1618 )
...
* fix: input validation for RRSIG.verify()
* fix: use labels.go/equal instead of strings.EqualFold for domain comparison
2025-01-24 11:33:32 +01:00