Skip to content

Fall back to public DNS for Alpine containers too - #231

Merged
michelroegl-brunner merged 1 commit into
mainfrom
fix/alpine-dns-fallback
Nov 12, 2026
Merged

michelroegl-brunner merged 1 commit into
mainfrom
fix/alpine-dns-fallback

Conversation

@MickLesk

Copy link
Copy Markdown
Member

✍️ Description

The Debian branch checks name resolution before apt-get update and writes public resolvers when it fails. The Alpine branch went straight to apk, and its mirror fallback only tries other host names, so a dead resolver failed every mirror: 73 installs in a week ended in "Failed to install base packages in Alpine container" behind "DNS: transient error". Same check now on Proxmox VE and Incus.

🔗 Related Issue

Fixes #

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected (Proxmox VE and/or Incus, as applicable).
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.
  • API.txt regenerated – If a function signature or behavior changed, API.txt was updated to match.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • ✨ New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing behavior in a way that may require updates in every downstream script.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, docs/, CONTRIBUTING.md, or other docs.

🤖 AI Assistance (X in brackets)

If you used an AI tool (GitHub Copilot, Claude, ChatGPT, etc.) to write or generate any code in this PR, you must confirm compliance below.
Select exactly one option.

  • No AI used – Code was written without AI assistance.
  • AI was used – The output has been reviewed and corrected, and I take responsibility for it matching this repo's conventions.

The Debian branch checks name resolution before apt-get update and
writes public resolvers when it fails. The Alpine branch went straight
to apk, and its mirror fallback only tries other host names, so a dead
resolver failed every mirror: 73 installs in a week ended in "Failed to
install base packages in Alpine container" behind "DNS: transient
error". Same check now on Proxmox VE and Incus.
@michelroegl-brunner
michelroegl-brunner merged commit b38c1ce into main Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants