CVS commit: pkgsrc/net/dnscontrol

"Marcin Gondek" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	drixter
Date:		Thu Aug 27 07:40:47 UTC 2026

Modified Files:
	pkgsrc/net/dnscontrol: Makefile distinfo go-modules.mk

Log Message:
dnscontrol: Update to 5.0.0

Changes
The list is too long to include all commits, but here are the highlights:

Add factory for models.DomainConfig: models.NewDomainConfig(zone).
Add factories for models.RecordConfig, replace old code where we can.
Down-casing, canonicalization, IDN conversion, stutter checking, and normalizing fields is now done when making the RecordConfig, not at the validation/normalization step later in the pipeline. As a result, errors are reported sooner and more accurately. pkg/normalize/validate.go still exists and is used, but is slowly being deprecated.
Remove the rtypecontrol module. In the few places it was used, replace with the new RDATA functionality.
DNS types RP and DS were reimplemented using the new RDATA system.
Replace RecordConfig.Comparable with RecordConfig.ComparableV3 (name change to find stragglers).
Custom types are now described in YAML with code generated automatically (pkg/privatetypes/types_generate.yaml)
TLSA comparison is now done on ToUpper, not ToLower, strings.
Added a "cookbook" of how to use new factories: Cookbook.
Integration tests: Test cfworkers and cfredirect by default.
Integration tests: Improve SVCB/HTTPS tests, especially for ech=IGNORE
LOC() is now a "builder" that outputs LOC records.
LOC floating point rounding error fixed
Builders are registered using models.RegisterBuilder()
No longer store the "Raw" domain names (the name as the user input them). They were never used.
D_EXTEND() refactored. Implementation is simplier and faster.
RecordConfig now stores .TypeNum which is the numeric value for the type. Eventually we'll remove .Type.
Change github.com/miekg/dns to codeberg.org/miekg/dns (and related packages) where possible, including new helper functions in pkg/dnsrr/dnsrr.go to help migrate away from dnsv1
pkg/js/helpers.js: Improved rawRecordBuilder() to be feature-compatible with recordBuilder()
pkg/js/helpers.js: Convert to "the new way" for all record types.
pkg/js/parse_tests update fixtures due to new JSON fields. .json files no longer have Unicode chars.
Zonefiles now include "real" data for custom types instead of comments.
New package: mustbe for converting raw data to the types we need.
BIND: Zonefile generator produces better files.
BIND: Refactor SOA serial number handling.
CLOUDFLAREAPI: Update SINGLE_REDIRECT, CF_REDIRECT, CF_TMP_REDIRECT, CF_WORKER_ROUTE to comply with the new way to do custom record types.
New functions ZoneifyQuoted, Zoneify, etc. are standard ways to create zonefile-compatible strings.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 pkgsrc/net/dnscontrol/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/net/dnscontrol/distinfo
cvs rdiff -u -r1.8 -r1.9 pkgsrc/net/dnscontrol/go-modules.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 130.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.