0
Fork 0
mirror of https://github.com/miekg/dns.git synced 2026-10-27 07:09:31 +00:00

Compare commits

..

75 commits

Author SHA1 Message Date
dependabot[bot]
2e4905fb03
Bump golang.org/x/net from 0.57.0 to 0.58.0 in the all group (#1731)
Bumps the all group with 1 update: [golang.org/x/net](https://github.com/golang/net).


Updates `golang.org/x/net` from 0.57.0 to 0.58.0
- [Commits](https://github.com/golang/net/compare/v0.57.0...v0.58.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.58.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>
2026-09-01 19:35:34 +02:00
Miek Gieben
d854399da1 Release 1.1.73 2026-08-19 07:07:32 +02:00
Sebastiaan van Stijn
aed10f489b go.mod: add tool directive to replace tools.go
Add a tool directive in go.mod to keep the golang.org/x/tools
in the dependency tree.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-08-19 07:06:44 +02:00
Miek Gieben
76c682a264 Fix gogen diff
Signed-off-by: Miek Gieben <miek@miek.nl>
2026-08-18 21:47:33 +02:00
dependabot[bot]
000bd62913
Bump the all group with 4 updates (#1726)
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.56.0 to 0.57.0
- [Commits](https://github.com/golang/net/compare/v0.56.0...v0.57.0)

Updates `golang.org/x/sync` from 0.21.0 to 0.22.0
- [Commits](https://github.com/golang/sync/compare/v0.21.0...v0.22.0)

Updates `golang.org/x/sys` from 0.46.0 to 0.47.0
- [Commits](https://github.com/golang/sys/compare/v0.46.0...v0.47.0)

Updates `golang.org/x/tools` from 0.47.0 to 0.48.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.47.0...v0.48.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.57.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sync
  dependency-version: 0.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sys
  dependency-version: 0.47.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/tools
  dependency-version: 0.48.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>
2026-08-18 20:15:11 +02:00
dependabot[bot]
24ce5ef354
Bump the all group with 4 updates (#1725)
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.55.0 to 0.56.0
- [Commits](https://github.com/golang/net/compare/v0.55.0...v0.56.0)

Updates `golang.org/x/sync` from 0.20.0 to 0.21.0
- [Commits](https://github.com/golang/sync/compare/v0.20.0...v0.21.0)

Updates `golang.org/x/sys` from 0.45.0 to 0.46.0
- [Commits](https://github.com/golang/sys/compare/v0.45.0...v0.46.0)

Updates `golang.org/x/tools` from 0.45.0 to 0.47.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.45.0...v0.47.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.56.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sync
  dependency-version: 0.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sys
  dependency-version: 0.46.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/tools
  dependency-version: 0.47.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>
2026-07-09 09:12:06 +02:00
dependabot[bot]
fa041eedc7
Bump the all group with 3 updates (#1723)
Bumps the all group with 3 updates: [golang.org/x/net](https://github.com/golang/net), [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.52.0 to 0.55.0
- [Commits](https://github.com/golang/net/compare/v0.52.0...v0.55.0)

Updates `golang.org/x/sys` from 0.42.0 to 0.45.0
- [Commits](https://github.com/golang/sys/compare/v0.42.0...v0.45.0)

Updates `golang.org/x/tools` from 0.43.0 to 0.45.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.43.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sys
  dependency-version: 0.45.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/tools
  dependency-version: 0.45.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>
2026-06-22 11:15:30 +02:00
Miek Gieben
3124152ebe
MD5: remove keytag calculation (#1724)
* MD5: remove keytag calculation

Signed-off-by: Miek Gieben <miek@miek.nl>

* Remove test

Signed-off-by: Miek Gieben <miek@miek.nl>

---------

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-06-22 11:15:14 +02:00
dependabot[bot]
d1539a788a
Bump the all group with 4 updates (#1713)
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.49.0 to 0.52.0
- [Commits](https://github.com/golang/net/compare/v0.49.0...v0.52.0)

Updates `golang.org/x/sync` from 0.19.0 to 0.20.0
- [Commits](https://github.com/golang/sync/compare/v0.19.0...v0.20.0)

Updates `golang.org/x/sys` from 0.40.0 to 0.42.0
- [Commits](https://github.com/golang/sys/compare/v0.40.0...v0.42.0)

Updates `golang.org/x/tools` from 0.41.0 to 0.43.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.41.0...v0.43.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.52.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sync
  dependency-version: 0.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sys
  dependency-version: 0.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/tools
  dependency-version: 0.43.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>
2026-04-02 06:48:38 +02:00
Miek Gieben
cd053176d8 Shorter v2 announcement
Signed-off-by: Miek Gieben <miek@miek.nl>
2026-03-06 09:30:03 +01:00
dependabot[bot]
ce76cb6c9b
Bump the all group with 3 updates (#1703)
Bumps the all group with 3 updates: [golang.org/x/net](https://github.com/golang/net), [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.48.0 to 0.49.0
- [Commits](https://github.com/golang/net/compare/v0.48.0...v0.49.0)

Updates `golang.org/x/sys` from 0.39.0 to 0.40.0
- [Commits](https://github.com/golang/sys/compare/v0.39.0...v0.40.0)

Updates `golang.org/x/tools` from 0.40.0 to 0.41.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.40.0...v0.41.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.49.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sys
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/tools
  dependency-version: 0.41.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>
2026-02-09 14:57:20 +01:00
Miek Gieben
d803c1729a diff file was moved
Signed-off-by: Miek Gieben <miek@miek.nl>
2026-01-30 17:30:07 +01:00
Miek Gieben
cc515f11e1 Stronger language about the fate of v1
Signed-off-by: Miek Gieben <miek@miek.nl>
2026-01-22 10:04:47 +01:00
Miek Gieben
cb21f4d267 Release 1.1.72 2026-01-22 09:23:52 +01:00
Miek Gieben
507a0f9d0c Release 2026-01-22 09:23:22 +01:00
Jan Včelák
c37687222b
Make PackDomainName return error if the root label doesn't fit (#1702)
* add PackDomainName tests for buffer size

* make PackDomainName fail if root label doesn't fit

* review: coding style

* review: remove unit test
2026-01-22 09:22:52 +01:00
zjj
604b539fde
fix Client xxxTimeout policy (#1700) 2026-01-16 16:17:22 +01:00
Miek Gieben
ad3cffe991 Release 1.1.70 2026-01-09 15:46:12 +01:00
Miek Gieben
479abeef4f
stringToTTL: error when overflowing uint32 (#1698)
* stringToTTL: error when overflowing uint32

Signed-off-by: Miek Gieben <miek@miek.nl>

* update template

Signed-off-by: Miek Gieben <miek@miek.nl>

---------

Signed-off-by: Miek Gieben <miek@miek.nl>
2026-01-09 15:45:40 +01:00
dependabot[bot]
9516b49490
Bump the all group with 4 updates (#1695)
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.47.0 to 0.48.0
- [Commits](https://github.com/golang/net/compare/v0.47.0...v0.48.0)

Updates `golang.org/x/sync` from 0.18.0 to 0.19.0
- [Commits](https://github.com/golang/sync/compare/v0.18.0...v0.19.0)

Updates `golang.org/x/sys` from 0.38.0 to 0.39.0
- [Commits](https://github.com/golang/sys/compare/v0.38.0...v0.39.0)

Updates `golang.org/x/tools` from 0.39.0 to 0.40.0
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.39.0...v0.40.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.48.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sync
  dependency-version: 0.19.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/sys
  dependency-version: 0.39.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/tools
  dependency-version: 0.40.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>
2026-01-08 07:03:50 +01:00
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 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 2025-08-03 17:58:10 +02:00
Miek Gieben
b52b836ee1
Revert "Add ResponseWriter.Net function (#1651)" (#1665)
This reverts commit 96a6b9c19d.

(not backwards compatible)
2025-08-03 17:57:34 +02:00
Miek Gieben
330db332dd Release 1.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 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 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 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 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
Phillip Stephens
8a00a2f968
add zdns as a user of miekg/dns (#1608) 2025-01-24 11:28:10 +01:00
Erik Geiser
cbe4275da1
Allow SO_REUSEADDR and SO_REUSEPORT to be set simultaneously (#1623) 2025-01-24 11:27:49 +01:00
dependabot[bot]
b77d1ed8e9
Bump golang.org/x/net from 0.27.0 to 0.28.0 (#1600)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.28.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>
2024-09-09 17:16:11 +02:00
Miek Gieben
794abd7eb8
edns0 cleanups (#1595)
Mostly trickered by:

~~~
-               return &EDNS0_ESU{Code: EDNS0ESU}
+               return new(EDNS0_ESU)
~~~

dont see why this 'case' needs to be different than all the others. Some
various textual changes for the test.

Signed-off-by: Miek Gieben <miek@miek.nl>
2024-08-21 13:01:04 +02:00
Johan Brandhorst-Satzkorn
60089295f7
add decorate reader warning (#1596)
The bytes read from the reader are returned to a pool and
must not be changed by the decorated reader.
2024-08-21 13:00:37 +02:00
39 changed files with 1346 additions and 748 deletions