Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
869af9a
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7377)
dependabot[bot] Jun 18, 2025
9c51e17
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Jun 18, 2025
b2a2a5f
plugin/rewrite: Add EDNS0 Unset Action (#7380)
dennis-ix Jun 19, 2025
8fce345
chore: fix docs incompatibility (#7390)
yquansah Jun 28, 2025
14cb5ba
build(deps): bump github/codeql-action from 3.29.0 to 3.29.2 (#7395)
dependabot[bot] Jul 1, 2025
45256de
build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.74.0 to 1.74…
dependabot[bot] Jul 1, 2025
dc26a95
build(deps): bump github.com/go-viper/mapstructure/v2 (#7389)
dependabot[bot] Jul 1, 2025
1f8cb27
build(deps): bump google.golang.org/api from 0.236.0 to 0.239.0 (#7393)
dependabot[bot] Jul 1, 2025
0dd3f51
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7388)
dependabot[bot] Jul 1, 2025
e34fda5
build(deps): bump github.com/prometheus/common from 0.64.0 to 0.65.0 …
dependabot[bot] Jul 1, 2025
06da7dc
fix(cache): data race when updating the TTL of cached messages (#7397)
bn-smayr Jul 3, 2025
19b6b3c
build(deps): bump sigs.k8s.io/mcs-api (#7385)
dependabot[bot] Jul 3, 2025
ae5e03a
fix(cache): data race when refreshing cached messages (#7398)
bn-smayr Jul 3, 2025
1449cb6
Port to AWS Go SDK v2 (#6588)
skitt Jul 3, 2025
0aee758
fix(auto/file): return REFUSED when no next plugin is available (#7381)
Tugzrida Jul 4, 2025
a929d10
build(deps): bump aquasecurity/trivy-action from 0.31.0 to 0.32.0 (#7…
dependabot[bot] Jul 7, 2025
56e6e60
build(deps): bump google.golang.org/api from 0.239.0 to 0.240.0 (#7400)
dependabot[bot] Jul 7, 2025
d129a8a
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7399)
dependabot[bot] Jul 7, 2025
ff88ad3
chore: bump Go to 1.24.5 (#7405)
thevilledev Jul 14, 2025
d8906ce
plugin/file: preserve case in SRV record names and targets per RFC 67…
syedazeez337 Jul 15, 2025
e90db8e
build(deps): bump github.com/quic-go/quic-go from 0.52.0 to 0.53.0 (#…
dependabot[bot] Jul 15, 2025
aaeb09d
build(deps): bump github.com/oschwald/geoip2-golang (#7407)
dependabot[bot] Jul 15, 2025
52d0f83
build(deps): bump google.golang.org/api from 0.240.0 to 0.241.0 (#7408)
dependabot[bot] Jul 15, 2025
222cf2c
build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.74.2 to 1.74…
dependabot[bot] Jul 15, 2025
1e87f43
build(deps): bump golang.org/x/crypto from 0.39.0 to 0.40.0 (#7412)
dependabot[bot] Jul 15, 2025
741e177
build(deps): bump the go-etcd-io group with 2 updates (#7411)
dependabot[bot] Jul 15, 2025
d593204
build(deps): bump github.com/miekg/dns from 1.1.66 to 1.1.67 (#7406)
dependabot[bot] Jul 15, 2025
1981f22
plugin/test: fix TXT record comparison for multi-chunk vs multiple re…
syedazeez337 Jul 15, 2025
6924697
build(deps): bump github/codeql-action from 3.29.2 to 3.29.3 (#7425)
dependabot[bot] Jul 21, 2025
39ab813
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7417)
dependabot[bot] Jul 21, 2025
0024dae
build(deps): bump github.com/quic-go/quic-go from 0.53.0 to 0.54.0 (#…
dependabot[bot] Jul 21, 2025
ea953aa
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Jul 22, 2025
11c7318
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7422)
dependabot[bot] Jul 22, 2025
1a30dd9
build(deps): bump google.golang.org/api from 0.241.0 to 0.242.0 (#7420)
dependabot[bot] Jul 22, 2025
2c2b075
refactor: use slices.Equal to simplify code (#7426)
houpo-bob Jul 28, 2025
6ba4392
fix: handle cached connection closure in forward plugin (#7427)
harshith-2411-2002 Jul 28, 2025
17020f0
Bump version to 1.12.3 (#7429)
yongtang Aug 4, 2025
1025a19
Properly create hostname from IPv6 (#7431)
gjacquet Aug 4, 2025
a538813
chore: Minor changes to `Dockerfile` (#7428)
polarathene Aug 4, 2025
463fd1c
Update for upcoming 1.12.3 (#7434)
yongtang Aug 5, 2025
dc8f3b0
Improve caddy.GracefulServer conformance checks (#7416)
Kentzo Aug 5, 2025
52639bc
plugin/loadbalance: support prefer option (#7433)
olljanat Aug 5, 2025
712a505
plugin/header: Remove deprecated syntax (#7436)
mqasimsarfraz Aug 8, 2025
fff3939
chore: update Go version to 1.24.6 (#7437)
thevilledev Aug 9, 2025
bc0467d
test(multisocket): deflake restart by using a fresh port and coordina…
syedazeez337 Aug 11, 2025
1e7131c
build(deps): bump google.golang.org/grpc from 1.73.0 to 1.74.2 (#7439)
dependabot[bot] Aug 11, 2025
b916b55
build(deps): bump github.com/aws/aws-sdk-go-v2/credentials (#7441)
dependabot[bot] Aug 11, 2025
dc07622
build(deps): bump golang.org/x/sys from 0.34.0 to 0.35.0 (#7453)
dependabot[bot] Aug 11, 2025
6ad4c30
build(deps): bump github.com/prometheus/client_golang (#7452)
dependabot[bot] Aug 11, 2025
a21e077
build(deps): bump the go-etcd-io group with 2 updates (#7449)
dependabot[bot] Aug 11, 2025
80f0d83
build(deps): bump github.com/miekg/dns from 1.1.67 to 1.1.68 (#7446)
dependabot[bot] Aug 11, 2025
c9873f5
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7440)
dependabot[bot] Aug 11, 2025
8b197fe
build(deps): bump golang.org/x/crypto from 0.40.0 to 0.41.0 (#7448)
dependabot[bot] Aug 11, 2025
14d14ef
build(deps): bump google.golang.org/api from 0.243.0 to 0.246.0 (#7454)
dependabot[bot] Aug 11, 2025
bdde4f0
build(deps): bump docker/login-action from 3.4.0 to 3.5.0 (#7455)
dependabot[bot] Aug 12, 2025
9d35f91
build(deps): bump google.golang.org/protobuf from 1.36.6 to 1.36.7 (#…
dependabot[bot] Aug 12, 2025
ddfe5c1
build(deps): bump github/codeql-action from 3.29.3 to 3.29.8 (#7442)
dependabot[bot] Aug 12, 2025
9bb1e68
build(deps): bump actions/checkout from 4.2.2 to 5.0.0 (#7443)
dependabot[bot] Aug 12, 2025
5d69e35
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7451)
dependabot[bot] Aug 13, 2025
e358bdf
build(deps): bump github.com/aws/aws-sdk-go-v2 from 1.36.6 to 1.37.2 …
dependabot[bot] Aug 13, 2025
b06b52d
build(deps): bump github.com/aws/aws-sdk-go-v2/feature/ec2/imds (#7447)
dependabot[bot] Aug 13, 2025
9562db7
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Aug 13, 2025
41a0b70
chore(deps): upgrade Go requirement to 1.24.0 (#7456)
thevilledev Aug 15, 2025
afd2eab
build(deps): bump the k8s-io group with 3 updates (#7270)
dependabot[bot] Aug 16, 2025
aec7a9e
build(deps): bump github.com/expr-lang/expr from 1.17.5 to 1.17.6 (#7…
dependabot[bot] Aug 18, 2025
de6f29d
build(deps): bump gopkg.in/DataDog/dd-trace-go.v1 from 1.74.3 to 1.74…
dependabot[bot] Aug 18, 2025
0edecc4
build(deps): bump github/codeql-action from 3.29.8 to 3.29.10 (#7464)
dependabot[bot] Aug 18, 2025
45af263
build(deps): bump google.golang.org/api from 0.246.0 to 0.247.0 (#7460)
dependabot[bot] Aug 19, 2025
dbb0553
build(deps): bump github.com/aws/aws-sdk-go-v2/credentials (#7462)
dependabot[bot] Aug 19, 2025
43d9683
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7459)
dependabot[bot] Aug 19, 2025
2b273d4
feat(trace): migrate dd-trace-go v1 to v2 (#7466)
thevilledev Aug 20, 2025
2c99f62
plugin/file: fix label offset problem in ClosestEncloser (#7465)
ywc689 Aug 20, 2025
d69dbd3
build(deps): bump github.com/go-viper/mapstructure/v2 (#7468)
dependabot[bot] Aug 21, 2025
f4ab4d9
test(plugin): improve test coverage for pprof (#7473)
thevilledev Aug 25, 2025
2f981ff
fix(forward): use netip package for parsing (#7472)
thevilledev Aug 25, 2025
5720d3c
chore(ci): pin workflow dependencies (#7471)
thevilledev Aug 25, 2025
9f7cc58
chore(ci): restrict token permissions (#7470)
thevilledev Aug 25, 2025
e767b0c
build(deps): bump github/codeql-action from 3.29.10 to 3.29.11 (#7483)
dependabot[bot] Aug 26, 2025
a112c25
build(deps): bump actions/dependency-review-action from 4.7.1 to 4.7.…
dependabot[bot] Aug 26, 2025
4217d9e
build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager…
dependabot[bot] Aug 26, 2025
9be6f86
build(deps): bump google.golang.org/grpc from 1.74.2 to 1.75.0 (#7478)
dependabot[bot] Aug 26, 2025
55ba782
build(deps): bump codecov/codecov-action from 5.4.3 to 5.5.0 (#7484)
dependabot[bot] Aug 26, 2025
ad7c1a7
build(deps): bump github.com/aws/aws-sdk-go-v2/credentials (#7476)
dependabot[bot] Aug 26, 2025
ea54017
build(deps): bump google.golang.org/api from 0.247.0 to 0.248.0 (#7477)
dependabot[bot] Aug 26, 2025
b17f64b
build(deps): bump github.com/aws/aws-sdk-go-v2/service/route53 (#7482)
dependabot[bot] Aug 26, 2025
8189b21
build(deps): bump google.golang.org/protobuf from 1.36.7 to 1.36.8 (#…
dependabot[bot] Aug 26, 2025
c38c2ca
build(deps): bump github.com/aws/aws-sdk-go-v2/config (#7474)
dependabot[bot] Aug 26, 2025
5a6700c
fix(metrics): add timeouts to metrics HTTP server (#7469)
thevilledev Aug 29, 2025
89fb505
plugin: Use %w to wrap user error (#7489)
Kentzo Aug 29, 2025
5ec2796
Add Sophotech to adopters list (#7495)
archy-rock3t-cloud Aug 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/cifuzz.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: CIFuzz

on:
pull_request:
branches:
- master

permissions:
contents: read

jobs:
Fuzzing:
runs-on: ubuntu-latest
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Initialize CodeQL
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
uses: github/codeql-action/init@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
uses: github/codeql-action/autobuild@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
uses: github/codeql-action/analyze@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: 'Dependency Review'
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9
uses: actions/dependency-review-action@bc41886e18ea39df68b1b1245f4184881938e050
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
RELEASE: ${{ github.event.inputs.release || github.event.release.tag_name }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Build Docker Images
run: make VERSION=${RELEASE:1} DOCKER=coredns -f Makefile.docker release
- name: Show Docker Images
run: docker images
- name: Docker login
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go.coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
Expand All @@ -25,10 +25,10 @@ jobs:

- name: Test With Coverage
run: |
go install github.com/fatih/faillint@latest
go install github.com/fatih/faillint@c56e3ec6dbfc933bbeb884fd31f2bcd41f712657 # v1.15.0
for d in request core coremain plugin test; do \
( cd $d; go test -coverprofile=cover.out -covermode=atomic -race ./...; [ -f cover.out ] && cat cover.out >> ../coverage.txt ); \
done

- name: Upload coverage to Codecov
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
10 changes: 5 additions & 5 deletions .github/workflows/go.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
Expand All @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
Expand All @@ -56,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
Expand All @@ -72,15 +72,15 @@ jobs:

- name: Test
run: |
go install github.com/fatih/faillint@latest
go install github.com/fatih/faillint@c56e3ec6dbfc933bbeb884fd31f2bcd41f712657 # v1.15.0
( cd test; go test -race ./... )

test-makefile-release:
name: Test Makefile.release
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Install dependencies
run: sudo apt-get install make curl
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: golangci-lint

on:
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
Expand All @@ -15,4 +20,4 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
with:
version: v2.1.6
version: v2.4.0
5 changes: 3 additions & 2 deletions .github/workflows/make.doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
schedule:
- cron: '22 10 * * 0'

permissions: read-all
permissions:
contents: read

jobs:
fix:
Expand All @@ -13,7 +14,7 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Setup Go Version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
description: "Commit (e.g., 52f0348)"
default: "master"

permissions:
contents: read

jobs:
release:
name: Release
Expand All @@ -15,7 +18,7 @@ jobs:
contents: write
steps:
- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.event.inputs.commit }}
- name: Set up info
Expand Down
4 changes: 2 additions & 2 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false

Expand Down Expand Up @@ -51,6 +51,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
uses: github/codeql-action/upload-sarif@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
with:
sarif_file: results.sarif
6 changes: 3 additions & 3 deletions .github/workflows/trivy-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@76071ef0d7ec797419534a183b498b4d6366cf37 # master
uses: aquasecurity/trivy-action@dc5a429b52fcf669ce959baa2c2dd26090d2a6c4 # master
with:
image-ref: 'docker.io/coredns/coredns:${{ matrix.versions }}'
severity: 'CRITICAL,HIGH'
format: 'sarif'
output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
uses: github/codeql-action/upload-sarif@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.11
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- 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.4
1.25.0
1 change: 1 addition & 0 deletions ADOPTERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
* [Northflank](https://northflank.com/) uses CoreDNS on all of our Kubernetes clusters across GCP, AWS, and bare-metal.
* [PITS Global Data Recovery Services](https://www.pitsdatarecovery.net) uses CoreDNS on K8s in its highly-loaded internal infrastructure.
* [plusserver](https://www.plusserver.com) uses CoreDNS on K8s in its plusserver Kubernetes Engine.
* [Sophotech](https://sopho.tech) uses CoreDNS with a tuned configuration for Kubernetes deployment in production environments.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ RUN export DEBCONF_NONINTERACTIVE_SEEN=true \
DEBIAN_PRIORITY=critical \
TERM=linux ; \
apt-get -qq update ; \
apt-get -yyqq upgrade ; \
apt-get -yyqq install ca-certificates libcap2-bin; \
apt-get -qq upgrade ; \
apt-get -qq --no-install-recommends install ca-certificates libcap2-bin; \
apt-get clean
COPY coredns /coredns
RUN setcap cap_net_bind_service=+ep /coredns
Expand All @@ -18,6 +18,8 @@ FROM --platform=$TARGETPLATFORM ${BASE}
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /coredns /coredns
USER nonroot:nonroot
# Reset the working directory inherited from the base image back to the expected default:
# https://github.com/coredns/coredns/issues/7009#issuecomment-3124851608
WORKDIR /
EXPOSE 53 53/udp
ENTRYPOINT ["/coredns"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ out-of-tree plugins.
To compile CoreDNS, we assume you have a working Go setup. See various tutorials if you don’t have
that already configured.

First, make sure your golang version is 1.23.0 or higher as `go mod` support and other api is needed.
First, make sure your golang version is 1.24.0 or higher as `go mod` support and other api is needed.
See [here](https://github.com/golang/go/wiki/Modules) for `go mod` details.
Then, check out the project and run `make` to compile the binary:

Expand All @@ -79,7 +79,7 @@ setup a Go environment, you could build CoreDNS easily:
```
docker run --rm -i -t \
-v $PWD:/go/src/github.com/coredns/coredns -w /go/src/github.com/coredns/coredns \
golang:1.22 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make'
golang:1.24 sh -c 'GOFLAGS="-buildvcs=false" make gen && GOFLAGS="-buildvcs=false" make'
```

The above command alone will have `coredns` binary generated.
Expand Down
5 changes: 5 additions & 0 deletions core/dnsserver/https.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ func (d *DoHWriter) LocalAddr() net.Addr {
return d.laddr
}

// Network no-op implementation.
func (d *DoHWriter) Network() string {
return ""
}

// Request returns the HTTP request.
func (d *DoHWriter) Request() *http.Request {
return d.request
Expand Down
10 changes: 9 additions & 1 deletion core/dnsserver/quic.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dnsserver

import (
"encoding/binary"
"errors"
"net"

"github.com/miekg/dns"
Expand All @@ -11,11 +12,14 @@ import (
type DoQWriter struct {
localAddr net.Addr
remoteAddr net.Addr
stream quic.Stream
stream *quic.Stream
Msg *dns.Msg
}

func (w *DoQWriter) Write(b []byte) (int, error) {
if w.stream == nil {
return 0, errors.New("stream is nil")
}
b = AddPrefix(b)
return w.stream.Write(b)
}
Expand All @@ -40,6 +44,9 @@ func (w *DoQWriter) WriteMsg(m *dns.Msg) error {
// mechanism that no further data will be sent on that stream.
// See https://www.rfc-editor.org/rfc/rfc9250#section-4.2-7
func (w *DoQWriter) Close() error {
if w.stream == nil {
return errors.New("stream is nil")
}
return w.stream.Close()
}

Expand All @@ -58,3 +65,4 @@ func (w *DoQWriter) TsigTimersOnly(b bool) {}
func (w *DoQWriter) Hijack() {}
func (w *DoQWriter) LocalAddr() net.Addr { return w.localAddr }
func (w *DoQWriter) RemoteAddr() net.Addr { return w.remoteAddr }
func (w *DoQWriter) Network() string { return "" }
Loading
Loading