Skip to content

[REQUEST] Add pre-flight DNS connectivity check to startup scripts #395

Closed

Description

@YashIIT0909

Pledge
N/A

Is your feature request related to a problem? Please describe.
On certain Linux distributions (such as Arch), the initial build process can fail during the apk add phase due to DNS bridging conflicts. The resulting "temporary error (try again later)" or EAI_AGAIN error occurs because the build container is unable to resolve external Alpine mirrors, creating an onboarding hurdle for contributors.

Describe the solution you'd like
Implement a connectivity check within the project's startup scripts. Before initiating the main build process, the script should execute a lightweight test in a temporary container (e.g., docker run --rm alpine nslookup dl-cdn.alpinelinux.org). If resolution fails, the script should provide a descriptive warning regarding the DNS conflict and suggest potential fixes, such as Docker daemon configuration.

Describe alternatives you've considered
Modifying the docker-compose.yml to use network: host for the build block was considered. However, this modifies core infrastructure for environment-specific issues and is less portable than an automated check combined with documentation.

Additional context
This enhancement aims to improve the overall Developer Experience (DX) and streamline the environment setup for contributors using Linux-based development environments.

Activity

  1. kushagra0902 commented on Apr 8, 2026

    @kushagra0902
    Contributor

    Hi @cameri. Can I please work on this issue

  2. assigned and unassigned on Apr 8, 2026
  3. cameri commented on Apr 8, 2026

    @cameri
    Owner

    @kushagra0902 YashIIT0909 was already on it.

  4. chappie-daemon commented on Apr 9, 2026

    @chappie-daemon
    Collaborator

    Thanks @YashIIT0909 for the implementation! The DNS pre-flight check PR (#398) has been merged. This will help users diagnose Docker connectivity issues much faster on systems with systemd-resolved conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions