Skip to content

Commit ecf7a51

Browse files
authoredMar 7, 2025··
Merge pull request #22 from zmap/phillip/fix-action
Phillip/fix action
2 parents 0c56ded + 0054e18 commit ecf7a51

File tree

6 files changed

+38
-31
lines changed

6 files changed

+38
-31
lines changed
 

‎.github/dependabot.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "monthly"
7+
groups:
8+
all:
9+
patterns:
10+
- "*"

‎.github/workflows/sync_fork.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,22 @@ jobs:
3636
# Merge upstream changes, preferring upstream changes in case of conflicts. This way we can resolve conflicts with master during the PR review process.
3737
run: |
3838
echo "Merging upstream changes"
39+
git config --global user.email "phillip@cs.stanford.edu"
40+
git config --global user.name "Phillip Stephens"
41+
3942
git merge --no-edit --strategy-option=theirs upstream/master || (git merge --abort && echo "merging was unsuccessful, aborting" && exit 1)
4043
44+
- name: Set branch name
45+
run: echo "BRANCH_NAME=sync-upstream-$(date +%Y%m%d)" >> $GITHUB_ENV
46+
4147
- name: Open Pull Request
4248
if: env.updates_available == 'true'
4349
uses: peter-evans/create-pull-request@v7
4450
with:
45-
branch: sync-upstream-$(date +%Y%m%d)
51+
branch: ${{ env.BRANCH_NAME }}
4652
delete-branch: true
4753
title: "Sync miekg/dns upstream changes"
4854
body: "Automated PR to sync upstream changes from miekg/dns. Please review and merge if appropriate.
4955
ALERT - If upstream tagged a new version, you'll need to tag manually after merging this PR."
5056
labels: "sync, automated"
51-
assignees: "phillip-stephens"
57+
assignees: "phillip-stephens"

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ Example programs can be found in the `github.com/miekg/exdns` repository.
193193
* 9460 - Service Binding and Parameter Specification via the DNS
194194
* 9461 - Service Binding Mapping for DNS Servers
195195
* 9462 - Discovery of Designated Resolvers
196+
* 9460 - SVCB and HTTPS Records
196197

197198
## Loosely Based Upon
198199

‎go.mod

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
module github.com/zmap/dns
22

3-
go 1.19
3+
go 1.22.0
44

5-
require (
6-
github.com/miekg/dns v1.1.62
7-
golang.org/x/net v0.31.0
8-
golang.org/x/sync v0.7.0
9-
golang.org/x/sys v0.27.0
10-
golang.org/x/tools v0.22.0
11-
)
5+
toolchain go1.24.0
126

137
replace github.com/miekg/dns => ./
148

15-
require golang.org/x/mod v0.18.0 // indirect
9+
require (
10+
github.com/miekg/dns v1.1.63
11+
golang.org/x/net v0.35.0
12+
golang.org/x/sync v0.11.0
13+
golang.org/x/sys v0.30.0
14+
golang.org/x/tools v0.30.0
15+
)
16+
17+
require golang.org/x/mod v0.23.0 // indirect

‎go.sum

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0=
2-
golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
3-
golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo=
4-
golang.org/x/net v0.31.0/go.mod h1:P4fl1q7dY2hnZFxEk4pPSkDHF+QqjitcnDjUQyMM+pM=
5-
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
6-
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
7-
golang.org/x/sys v0.27.0 h1:wBqf8DvsY9Y/2P8gAfPDEYNuS30J4lPHJxXSb/nJZ+s=
8-
golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
9-
golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA=
10-
golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c=
1+
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
2+
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
3+
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
4+
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
5+
golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8=
6+
golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk=
7+
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
8+
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
9+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
10+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
11+
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
12+
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=

‎svcb.go

+2-10
Original file line numberDiff line numberDiff line change
@@ -214,24 +214,16 @@ func makeSVCBKeyValue(key SVCBKey) SVCBKeyValue {
214214
}
215215
}
216216

217-
// SVCB RR. See RFC xxxx (https://tools.ietf.org/html/draft-ietf-dnsop-svcb-https-08).
218-
//
219-
// NOTE: The HTTPS/SVCB RFCs are in the draft stage.
220-
// The API, including constants and types related to SVCBKeyValues, may
221-
// change in future versions in accordance with the latest drafts.
217+
// SVCB RR. See RFC 9460.
222218
type SVCB struct {
223219
Hdr RR_Header
224220
Priority uint16 // If zero, Value must be empty or discarded by the user of this library
225221
Target string `dns:"domain-name"`
226222
Value []SVCBKeyValue `dns:"pairs"`
227223
}
228224

229-
// HTTPS RR. Everything valid for SVCB applies to HTTPS as well.
225+
// HTTPS RR. See RFC 9460. Everything valid for SVCB applies to HTTPS as well.
230226
// Except that the HTTPS record is intended for use with the HTTP and HTTPS protocols.
231-
//
232-
// NOTE: The HTTPS/SVCB RFCs are in the draft stage.
233-
// The API, including constants and types related to SVCBKeyValues, may
234-
// change in future versions in accordance with the latest drafts.
235227
type HTTPS struct {
236228
SVCB
237229
}

0 commit comments

Comments
 (0)
Please sign in to comment.