Skip to content

Conversation

dobrac
Copy link
Contributor

@dobrac dobrac commented Sep 26, 2025

Change the sandboxes hostname from e2b.local to just e2b. This should prevent conflicts with mDNS resolver.


Note

Changes the sandbox hostname from e2b.local to e2b in packages/orchestrator/internal/template/build/core/rootfs/rootfs.go, updating the generated /etc/hosts.

  • Rootfs template:
    • Update default hostname to e2b (from e2b.local) in packages/orchestrator/internal/template/build/core/rootfs/rootfs.go, which updates the generated /etc/hosts entry.

Written by Cursor Bugbot for commit 89bd4d3. This will update automatically on new commits. Configure here.

@dobrac dobrac self-assigned this Sep 26, 2025
@dobrac dobrac added the bug Something isn't working label Sep 26, 2025
@dobrac dobrac removed their assignment Sep 26, 2025
@dobrac dobrac marked this pull request as ready for review October 1, 2025 10:24
@tomassrnka
Copy link
Member

✅ e2b (Recommended)

Follows systemd's official recommendation (short name without dots)
Avoids the hostnamectl bug that strips dots from FQDNs
Maximum compatibility across all Linux distributions
You can still get FQDN resolution by adding an entry to /etc/hosts or proper DNS

❌ e2b.local (Avoid)

Violates RFC 6762 - .local is reserved for mDNS only
Will break on Apple devices (macOS/iOS) which automatically use mDNS for .local
Causes Avahi to auto-rename your host to e2b-2, e2b-3 after network changes
Mixed unicast DNS + mDNS creates unpredictable resolution failures

❌ e2b.localhost (Wrong use case)

RFC 6761 reserves .localhost to always resolve to 127.0.0.1/::1
Perfect for local web development, but useless for anything involving network communication
Can't be used for services that need to be accessible from other machines

@dobrac dobrac changed the title Change sandboxes local hostname Change sandboxes local hostname to e2b Oct 1, 2025
@e2b-request-same-site-reviewers e2b-request-same-site-reviewers bot requested review from jakubno and sitole and removed request for ValentaTomas and jakubno October 1, 2025 10:24
@sitole
Copy link
Member

sitole commented Oct 1, 2025

Shouldn’t we also change events domain in envd?

@dobrac
Copy link
Contributor Author

dobrac commented Oct 1, 2025

Shouldn’t we also change events domain in envd?

do you think having events.e2b is a good idea there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants