Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
ed05cff
fix: update broken link to `expr` language definition (#7604)
rfletcher Oct 11, 2025
aeb68d2
build(deps): bump actions/dependency-review-action from 4.8.0 to 4.8.…
dependabot[bot] Oct 13, 2025
1cc68b6
build(deps): bump golang.org/x/crypto from 0.42.0 to 0.43.0 (#7606)
dependabot[bot] Oct 13, 2025
2947e13
build(deps): bump softprops/action-gh-release from 2.3.4 to 2.4.1 (#7…
dependabot[bot] Oct 13, 2025
73705d0
build(deps): bump github/codeql-action from 3.30.6 to 4.30.8 (#7612)
dependabot[bot] Oct 13, 2025
eb10948
build(deps): bump github.com/prometheus/common from 0.66.1 to 0.67.1 …
dependabot[bot] Oct 13, 2025
344bb82
build(deps): bump google.golang.org/grpc from 1.75.1 to 1.76.0 (#7608)
dependabot[bot] Oct 14, 2025
89bf0a2
build(deps): bump google.golang.org/api from 0.251.0 to 0.252.0 (#7607)
dependabot[bot] Oct 14, 2025
f085ed0
fix(multisocket): cap num sockets to prevent OOM (#7615)
thevilledev Oct 14, 2025
38c0209
chore: bump Go version to 1.25.3 (#7616)
thevilledev Oct 14, 2025
f4ab631
fix(forward): disallow NOERROR in failover (#7622)
thevilledev Oct 17, 2025
109b3f4
Update multisocket README.md (#7621)
rpb-ant Oct 17, 2025
f19bf73
build(deps): bump github/codeql-action from 4.30.8 to 4.30.9 (#7625)
dependabot[bot] Oct 20, 2025
c34a0a6
build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds (#7623)
dependabot[bot] Oct 20, 2025
9210bd1
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.39.2 to 1.39.3 …
dependabot[bot] Oct 20, 2025
9a528d9
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Oct 20, 2025
8d1fa05
build(deps): bump github.com/aws/aws-sdk-go-v2/credentials (#7626)
dependabot[bot] Oct 20, 2025
700a972
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7629)
dependabot[bot] Oct 20, 2025
bbe40d8
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7628)
dependabot[bot] Oct 20, 2025
4ca99cd
fix(cache): isolate metadata in prefetch goroutine (#7631)
thevilledev Oct 22, 2025
b72d267
chore(lint): bump to v2.5.0 and enable godoclint (#7632)
thevilledev Oct 23, 2025
d68cbed
plugin/forward: added support for per-nameserver TLS SNI (#7633)
endreszabo Oct 27, 2025
4bb6ac1
build(deps): bump github/codeql-action from 4.30.9 to 4.31.0 (#7634)
dependabot[bot] Oct 27, 2025
f108730
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7636)
dependabot[bot] Oct 27, 2025
9670324
build(deps): bump github.com/DataDog/dd-trace-go/v2 from 2.2.3 to 2.3…
dependabot[bot] Oct 27, 2025
7e65040
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7641)
dependabot[bot] Oct 27, 2025
7f93896
build(deps): bump google.golang.org/api from 0.252.0 to 0.253.0 (#7643)
dependabot[bot] Oct 27, 2025
82bd276
build(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 (#7642)
dependabot[bot] Oct 27, 2025
60e2d45
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Oct 27, 2025
5cf4c80
chore(lint): update to golangci-lint v2.6.0 (#7645)
thevilledev Oct 30, 2025
3ae160f
build(deps): bump github/codeql-action from 4.31.0 to 4.31.2 (#7648)
dependabot[bot] Nov 3, 2025
5456042
build(deps): bump github.com/DataDog/dd-trace-go/v2 from 2.3.0 to 2.3…
dependabot[bot] Nov 3, 2025
3686501
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7649)
dependabot[bot] Nov 4, 2025
23e033b
build(deps): bump github.com/prometheus/common from 0.67.1 to 0.67.2 …
dependabot[bot] Nov 4, 2025
ee9f8fd
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.39.4 to 1.39.5 …
dependabot[bot] Nov 4, 2025
3bdfa46
build(deps): bump github.com/aws/aws-sdk-go-v2/credentials (#7650)
dependabot[bot] Nov 4, 2025
d105387
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7652)
dependabot[bot] Nov 4, 2025
e2c5603
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Nov 4, 2025
18e70fc
build(deps): bump google.golang.org/api from 0.253.0 to 0.254.0 (#7653)
dependabot[bot] Nov 4, 2025
59afd4b
fix(dnstap): Better error handling (redial & logging) when Dnstap is …
aliciay64 Nov 6, 2025
deae7ec
Performance tuning for plugin/file (#7658)
ywc689 Nov 6, 2025
cfedccc
ci: Remove CodeCov (#7663)
polarathene Nov 7, 2025
6f3423f
ci: Update Build (#7659)
polarathene Nov 8, 2025
6538785
chore: Update `Dockerfile` (#7661)
polarathene Nov 8, 2025
720420a
build(deps): bump golangci/golangci-lint-action from 8.0.0 to 9.0.0 (…
dependabot[bot] Nov 10, 2025
c935f88
build(deps): bump softprops/action-gh-release from 2.4.1 to 2.4.2 (#7…
dependabot[bot] Nov 10, 2025
0ff124d
build(deps): bump github.com/quic-go/quic-go from 0.55.0 to 0.56.0 (#…
dependabot[bot] Nov 10, 2025
24a2bfa
build(deps): bump golang.org/x/sys from 0.37.0 to 0.38.0 (#7670)
dependabot[bot] Nov 10, 2025
d480350
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Nov 10, 2025
e404b7c
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.39.5 to 1.39.6 …
dependabot[bot] Nov 10, 2025
31382b6
build(deps): bump google.golang.org/api from 0.254.0 to 0.255.0 (#7672)
dependabot[bot] Nov 10, 2025
195fa39
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7674)
dependabot[bot] Nov 10, 2025
8a5b70c
build(deps): bump github.com/aws/aws-sdk-go-v2/credentials (#7675)
dependabot[bot] Nov 11, 2025
d771cdc
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7671)
dependabot[bot] Nov 11, 2025
56754d1
chore: bump Go version to 1.25.4 (#7676)
thevilledev Nov 14, 2025
f97a249
build(deps): bump actions/dependency-review-action from 4.8.1 to 4.8.…
dependabot[bot] Nov 17, 2025
6a1ac8e
build(deps): bump github/codeql-action from 4.31.2 to 4.31.3 (#7682)
dependabot[bot] Nov 17, 2025
dcd5974
build(deps): bump github.com/DataDog/dd-trace-go/v2 from 2.3.1 to 2.4…
dependabot[bot] Nov 17, 2025
93a6aea
build(deps): bump the k8s-io group with 3 updates (#7683)
dependabot[bot] Nov 18, 2025
4b16aa9
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7685)
dependabot[bot] Nov 18, 2025
678c561
build(deps): bump golang.org/x/crypto from 0.43.0 to 0.44.0 (#7690)
dependabot[bot] Nov 18, 2025
1dd2114
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7686)
dependabot[bot] Nov 18, 2025
a91242e
build(deps): bump the go-etcd-io group with 2 updates (#7684)
dependabot[bot] Nov 18, 2025
ad79f16
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Nov 18, 2025
db64962
build(deps): bump google.golang.org/api from 0.255.0 to 0.256.0 (#7688)
dependabot[bot] Nov 18, 2025
7d7bbc8
fix: prevent QUIC reload panic by lazily initializing the listener (#…
nberlee Nov 18, 2025
614a364
fix: correct spelling of MaximumDefaultTTL in cache and dnsutil packa…
tsolodov Nov 18, 2025
9989ac5
refactor: use reflect.TypeFor (#7696)
zhetaicheleba Nov 19, 2025
e56971b
fix: fix reload causing secondary plugin goroutine to leak. (#7694)
wenxuan70 Nov 20, 2025
2883b63
plugin/rewrite: pre-compile CNMAE rewrite regexp (#7697)
charlievieth Nov 20, 2025
5d64dfb
build(deps): bump golang.org/x/crypto from 0.44.0 to 0.45.0 (#7698)
dependabot[bot] Nov 20, 2025
d3e13fe
Add basic support for DoH3 (#7677)
Filippo125 Nov 21, 2025
854048b
plugin/pkg/replacer: fix usage of sync.Pool to save an alloc (#7701)
charlievieth Nov 21, 2025
de01091
plugin/cache: remove superfluous allocations in item.toMsg (#7700)
charlievieth Nov 21, 2025
dc381f7
fix(forward): prevent busy loop on connection err (#7704)
thevilledev Nov 23, 2025
5fdf71a
build(deps): bump golangci/golangci-lint-action from 9.0.0 to 9.1.0 (…
dependabot[bot] Nov 24, 2025
6958fb1
build(deps): bump actions/setup-go from 6.0.0 to 6.1.0 (#7709)
dependabot[bot] Nov 24, 2025
a924d6b
build(deps): bump github/codeql-action from 4.31.3 to 4.31.5 (#7710)
dependabot[bot] Nov 24, 2025
2cefcc0
build(deps): bump actions/checkout from 5.0.0 to 6.0.0 (#7711)
dependabot[bot] Nov 24, 2025
390efdc
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7721)
dependabot[bot] Nov 24, 2025
bc51a6e
build(deps): bump google.golang.org/grpc from 1.76.0 to 1.77.0 (#7720)
dependabot[bot] Nov 24, 2025
63eb9f7
build(deps): bump github.com/quic-go/quic-go from 0.56.0 to 0.57.0 (#…
dependabot[bot] Nov 24, 2025
fe7335e
perf(proxy): avoid unnecessary alloc in Yield (#7708)
thevilledev Nov 24, 2025
25b43fd
build(deps): bump github.com/prometheus/common from 0.67.2 to 0.67.4 …
dependabot[bot] Nov 24, 2025
6818b93
build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds (#7716)
dependabot[bot] Nov 24, 2025
62bbe06
build(deps): bump github.com/aws/aws-sdk-go-v2/credentials (#7719)
dependabot[bot] Nov 24, 2025
4f4f403
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Nov 24, 2025
0ef4b55
plugin/pkg/uniq: fix data race with sync.RWMutex (#7707)
cangming Nov 24, 2025
3362885
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7714)
dependabot[bot] Nov 24, 2025
bdc03ed
plugin/nomad: Support service filtering (#7724)
olljanat Nov 25, 2025
604e167
fix: kubernetes plugin logging (#7727)
smira Nov 27, 2025
54dd258
plugin/geoip: Add ASN schema support (#7730)
case Nov 30, 2025
5cb2c5d
chore(lint): enable reflecttypefor in modernize (#7729)
thevilledev Dec 1, 2025
c2894d4
feat(forward): add max connect attempts knob (#7722)
thevilledev Dec 2, 2025
b472d3d
plugin/geoip - Support for ISO 3166-2 subdivisions. (#7728)
fr6nco Dec 2, 2025
3c8b846
chore: bump Go version to 1.25.5 (#7736)
thevilledev Dec 4, 2025
e5cd796
fix(auto): limit regex length (#7737)
thevilledev Dec 8, 2025
38937ca
Update release version to 1.13.2 (#7739)
yongtang Dec 8, 2025
2d869c8
build(deps): bump golangci/golangci-lint-action from 9.1.0 to 9.2.0 (…
dependabot[bot] Dec 8, 2025
5e3115e
build(deps): bump actions/stale from 10.1.0 to 10.1.1 (#7744)
dependabot[bot] Dec 8, 2025
3864521
build(deps): bump github/codeql-action from 4.31.5 to 4.31.7 (#7743)
dependabot[bot] Dec 8, 2025
7b752b7
build(deps): bump softprops/action-gh-release from 2.4.2 to 2.5.0 (#7…
dependabot[bot] Dec 8, 2025
381bda5
build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds (#7746)
dependabot[bot] Dec 8, 2025
9a217cd
build(deps): bump golang.org/x/sys from 0.38.0 to 0.39.0 (#7747)
dependabot[bot] Dec 8, 2025
8dad281
build(deps): bump github.com/quic-go/quic-go from 0.57.0 to 0.57.1 (#…
dependabot[bot] Dec 8, 2025
01c4d36
build(deps): bump actions/checkout from 6.0.0 to 6.0.1 (#7741)
dependabot[bot] Dec 8, 2025
18e5b24
build(deps): bump google.golang.org/api from 0.256.0 to 0.257.0 (#7751)
dependabot[bot] Dec 8, 2025
2a96ac1
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7750)
dependabot[bot] Dec 8, 2025
8f48704
plugin/geoip: Upgrade to geoip2-golang v2 (#7732)
case Dec 8, 2025
f663db2
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7754)
dependabot[bot] Dec 8, 2025
258088c
build(deps): bump github.com/aws/aws-sdk-go-v2/credentials (#7749)
dependabot[bot] Dec 8, 2025
56aa6dc
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Dec 9, 2025
0233f3e
Add deprecation notice for geoip plugin's behavior of 0 (#7740)
yongtang Dec 9, 2025
b335733
UPSTREAM: <carry>: openshift: restore automation metadata
bentito Nov 24, 2025
c4c04a7
UPSTREAM: <carry>: openshift: document downstream OWNERS metadata
bentito Nov 24, 2025
43e7411
UPSTREAM: <carry>: openshift: disable dependabot
bentito Nov 20, 2025
bc8cbf2
UPSTREAM: <carry>: openshift: keep make test target for ci-operator
bentito Nov 24, 2025
9b480ca
UPSTREAM: <carry>: openshift: add ocp_dnsnameresolver plugin
bentito Nov 20, 2025
f593a33
UPSTREAM: <carry>: openshift: document vendor tree ignore rules
bentito Nov 24, 2025
4c07153
UPSTREAM: <carry>: openshift: vendor deps + track vendor tree
bentito Nov 24, 2025
0e43467
Merge remote-tracking branch 'origin/main' into rebase-to-v1.13.2
gcs278 Dec 19, 2025
e38631c
Update vendor tree and go.sum for v1.13.2 dependencies
gcs278 Dec 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ integrationDefaults: &integrationDefaults
image: default
working_directory: ~/go/src/${CIRCLE_PROJECT_USERNAME}/coredns
environment:
- K8S_VERSION: v1.29.4
- KIND_VERSION: v0.25.0
- K8S_VERSION: v1.34.0
- KIND_VERSION: v0.30.0
- KUBECONFIG: /home/circleci/.kube/kind-config-kind

setupKubernetes: &setupKubernetes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
fuzz-seconds: 600
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Initialize CodeQL
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
uses: github/codeql-action/init@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
uses: github/codeql-action/autobuild@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
uses: github/codeql-action/analyze@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
4 changes: 2 additions & 2 deletions .github/workflows/depsreview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 'Dependency Review'
uses: actions/dependency-review-action@56339e523c0409420f6c2c9a2f4292bbb3c07dd3
uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
RELEASE: ${{ github.event.inputs.release || github.event.release.tag_name }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Build Docker Images
run: make VERSION=${RELEASE:1} DOCKER=coredns -f Makefile.docker release
- name: Show Docker Images
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/go.coverage.yml

This file was deleted.

14 changes: 7 additions & 7 deletions .github/workflows/go.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV

- name: Install Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
id: go
Expand All @@ -34,13 +34,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV

- name: Install Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
id: go
Expand All @@ -56,13 +56,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV

- name: Install Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
id: go
Expand All @@ -80,7 +80,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Install dependencies
run: sudo apt-get install make curl
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: v2.4.0
- name: modernize
run: go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@2e31135b736b96cd609904370c71563ce5447826 -diff -test ./... # v0.20.0
version: v2.6.0
4 changes: 2 additions & 2 deletions .github/workflows/make.doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV

- name: Setup Go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: ${{ env.GO_VERSION }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
contents: write
steps:
- name: Check out code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: ${{ github.event.inputs.commit }}
- name: Set up info
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
cat release.md
sha256sum release/*.tgz
- name: Draft release
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
with:
body_path: release.md
name: v${{ steps.info.outputs.version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false

Expand All @@ -43,14 +43,14 @@ jobs:

# Upload the results as artifacts (optional).
- name: "Upload artifact"
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008 # v10.1.0
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days'
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/trivy-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # master
with:
Expand All @@ -28,6 +28,6 @@ jobs:
output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
uses: github/codeql-action/upload-sarif@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
with:
sarif_file: 'trivy-results.sarif'
2 changes: 1 addition & 1 deletion .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: 'Yamllint'
uses: karancode/yamllint-github-action@4052d365f09b8d34eb552c363d1141fd60e2aeb2
with:
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.24.6
1.25.5
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ linters:
- canonicalheader
- copyloopvar
- durationcheck
- godoclint
- govet
- ineffassign
- intrange
- modernize
- nakedret
- nolintlint
- perfsprint
Expand Down
17 changes: 5 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
ARG DEBIAN_IMAGE=debian:stable-slim
ARG BASE=gcr.io/distroless/static-debian12:nonroot
FROM --platform=$BUILDPLATFORM ${DEBIAN_IMAGE} AS build
SHELL [ "/bin/sh", "-ec" ]

RUN export DEBCONF_NONINTERACTIVE_SEEN=true \
DEBIAN_FRONTEND=noninteractive \
DEBIAN_PRIORITY=critical \
TERM=linux ; \
apt-get -qq update ; \
apt-get -qq upgrade ; \
apt-get -qq --no-install-recommends install ca-certificates libcap2-bin; \
apt-get clean
FROM --platform=$BUILDPLATFORM ${DEBIAN_IMAGE} AS build
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update \
&& apt-get -qq --no-install-recommends install libcap2-bin
COPY coredns /coredns
RUN setcap cap_net_bind_service=+ep /coredns

FROM --platform=$TARGETPLATFORM ${BASE}
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
FROM ${BASE}
COPY --from=build /coredns /coredns
USER nonroot:nonroot
# Reset the working directory inherited from the base image back to the expected default:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CGO_ENABLED?=0
GOLANG_VERSION ?= $(shell cat .go-version)

export GOSUMDB = sum.golang.org
export GOTOOLCHAIN = local
export GOTOOLCHAIN = go$(GOLANG_VERSION)

.PHONY: all
all: coredns
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
![CodeQL](https://github.com/coredns/coredns/actions/workflows/codeql-analysis.yml/badge.svg)
![Go Tests](https://github.com/coredns/coredns/actions/workflows/go.test.yml/badge.svg)
[![CircleCI](https://circleci.com/gh/coredns/coredns.svg?style=shield)](https://circleci.com/gh/coredns/coredns)
[![Code Coverage](https://img.shields.io/codecov/c/github/coredns/coredns/master.svg)](https://codecov.io/github/coredns/coredns?branch=master)
[![Docker Pulls](https://img.shields.io/docker/pulls/coredns/coredns.svg)](https://hub.docker.com/r/coredns/coredns)
[![Go Report Card](https://goreportcard.com/badge/github.com/coredns/coredns)](https://goreportcard.com/report/coredns/coredns)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1250/badge)](https://bestpractices.coreinfrastructure.org/projects/1250)
Expand All @@ -23,6 +22,7 @@ CoreDNS can listen for DNS requests coming in over:
* UDP/TCP (go'old DNS).
* TLS - DoT ([RFC 7858](https://tools.ietf.org/html/rfc7858)).
* DNS over HTTP/2 - DoH ([RFC 8484](https://tools.ietf.org/html/rfc8484)).
* DNS over HTTP/3 - DoH3
* DNS over QUIC - DoQ ([RFC 9250](https://tools.ietf.org/html/rfc9250)).
* [gRPC](https://grpc.io) (not a standard).

Expand Down Expand Up @@ -254,6 +254,17 @@ grpc://example.org:1443 https://example.org:1444 {
}
~~~

And for DNS over HTTP/3 (DoH3) use:

~~~ corefile
https3://example.org {
whoami
tls mycert mykey
}
~~~
in this setup, the CoreDNS will be responsible for TLS termination


When no transport protocol is specified the default `dns://` is assumed.

## Community
Expand Down
1 change: 1 addition & 0 deletions core/dnsserver/quic.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func AddPrefix(b []byte) (m []byte) {
}

// These methods implement the dns.ResponseWriter interface from Go DNS.

func (w *DoQWriter) TsigStatus() error { return nil }
func (w *DoQWriter) TsigTimersOnly(b bool) {}
func (w *DoQWriter) Hijack() {}
Expand Down
9 changes: 9 additions & 0 deletions core/dnsserver/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func (h *dnsContext) InspectServerBlocks(sourceFile string, serverBlocks []caddy
port = transport.GRPCPort
case transport.HTTPS:
port = transport.HTTPSPort
case transport.HTTPS3:
port = transport.HTTPSPort
}
}

Expand Down Expand Up @@ -347,6 +349,13 @@ func makeServersForGroup(addr string, group []*Config) ([]caddy.Server, error) {
return nil, err
}
servers = append(servers, s)

case transport.HTTPS3:
s, err := NewServerHTTPS3(addr, group)
if err != nil {
return nil, err
}
servers = append(servers, s)
}
}
return servers, nil
Expand Down
1 change: 1 addition & 0 deletions core/dnsserver/server_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func (r *gRPCresponse) Write(b []byte) (int, error) {
}

// These methods implement the dns.ResponseWriter interface from Go DNS.

func (r *gRPCresponse) Close() error { return nil }
func (r *gRPCresponse) TsigStatus() error { return nil }
func (r *gRPCresponse) TsigTimersOnly(b bool) {}
Expand Down
Loading