8000 fix(minimald): min ls shows port 0 for the interim answerer with --zone-answerer-port 0 · Issue #3863 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

fix(minimald): min ls shows port 0 for the interim answerer with --zone-answerer-port 0 #3863

Backlog

Description

@agent-137

What happens

With minimald run --zone-answerer-port 0 on a native host with no minzoned service installed, the interim answerer binds a port that the OS chooses. But min ls prints DNS SERVICE: listening on 127.0.0.1:0 (UDP) for *.min.internal, so a reader points the host resolver at port 0.

Repro: run minimald run --zone-answerer-port 0 on a host without minzoned, then run min ls.

Where

  • crates/minimald/src/net/answerer.rs:1903 binds (127.0.0.1, hook_port), so port 0 asks the OS for a port.
  • crates/minimald/src/net/answerer.rs:2169 records state.set_zone_answerer_port(hook_port), the configured value, not the socket's bound port. :2115 also sets Holder { port: hook_port }.

The fix is to record the bound port, or to refuse 0 for this flag before the answerer starts.

Found by

The docs pass, on #3858 (CodeRabbit) and confirmed for #3859. docs/reference/cli-minimald.md lists it under Known issues.

🤖 Generated with Claude Code

https://claude.ai/code/session_016CYvTye6pQuxGcVPkx1r2g

Activity

  1. added
    priority:nice-to-have
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:nice-to-have

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0