Skip to content

Commit 33fed32

Browse files
taha-auclaude
andauthored
add explicit dns nameservers to buildkitd config (#59)
Configure explicit DNS nameservers in buildkitd.toml to avoid issues with systemd-resolved stub resolver. Customers reported intermittent DNS failures during Docker builds with errors like: - "DNS: transient error (try again later)" - "temporary error (try again later)" This is a known buildkit issue when running with systemd-resolved. See: moby/buildkit#5009 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 53647ab commit 33fed32

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/setup_builder.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ async function writeBuildkitdTomlFile(
7474
grpc: {
7575
address: [addr],
7676
},
77+
// Configure explicit DNS nameservers to avoid issues with systemd-resolved stub resolver.
78+
// See: https://github.com/moby/buildkit/issues/5009
79+
dns: {
80+
nameservers: ["8.8.8.8", "8.8.4.4", "1.1.1.1", "1.0.0.1", "9.9.9.9", "149.112.112.112"],
81+
},
7782
registry: {
7883
"docker.io": {
7984
mirrors: ["http://192.168.127.1:5000"],

0 commit comments

Comments
 (0)