[Spark][Policy&Network] DGX Spark Docker-driver GPU sandbox: DNS works on host and for host.openshell.internal, but getent cannot resolve external domains inside sandbox
Description
On DGX Spark with NemoClaw v0.0.65, a Docker-driver GPU sandbox (dns-gpu-test) correctly resolves host.openshell.internal via Docker's internal resolver (127.0.0.11), but getent hosts returns empty for all external domains (google.com, gateway.discord.gg, integrate.api.nvidia.com). Host DNS works correctly for all these domains. This breaks any tooling or agents inside the sandbox that rely on DNS to reach external services.
Environment
| Field | Value |
|---|---|
| Platform | DGX Spark |
| Host OS | Ubuntu 24.04 |
| NemoClaw | v0.0.65 |
| Sandbox type | Docker-driver GPU sandbox (dns-gpu-test) |
| Docker DNS (sandbox) | [10.18.1.96] (via docker inspect --format '{{.HostConfig.Dns}}') |
Related Issues / PRs
- NVBug 6180113 — Sandbox DNS broken under Docker-driver/OpenShell,
getentDNS checks fail - NVBug 6089987 —
getent hosts github.comreturns empty, "DNS not resolving" in sandbox - NemoClaw PR #3623 — Preserve OpenShell
--add-host/host.openshell.internalmapping and network mode for GPU sandboxes - GitHub #3562, #3568 — Docker-driver/GPU sandbox networking root cause
Steps to Reproduce
-
On DGX Spark host, confirm host DNS is working:
nslookup google.com nslookup gateway.discord.gg nslookup integrate.api.nvidia.com -
Connect to the NemoClaw GPU sandbox:
nemoclaw dns-gpu-test connect -
Inside sandbox, inspect resolver config:
cat /etc/resolv.conf -
Inside sandbox, check external DNS with
getent:getent hosts google.com getent hosts gateway.discord.gg getent hosts integrate.api.nvidia.com -
Inside sandbox, check host alias DNS:
getent hosts host.openshell.internal
Expected Result
Per NVBug 6180113 dev guidance and PR #3623 validation criteria, inside the GPU sandbox:
getent hosts google.com→ one or more public IP addressesgetent hosts gateway.discord.gg→ one or more IP addressesgetent hosts integrate.api.nvidia.com→ one or more IP addressesgetent hosts host.openshell.internal→ host-side gateway IP (e.g.,172.17.0.1or172.18.0.1)
Actual Result
Host (working)
nslookup google.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Name: google.com
Address: 142.250.197.238
Address: 2404:6800:4005:81f::200e
nslookup gateway.discord.gg # returns multiple 162.159.x.x addresses
nslookup integrate.api.nvidia.com # returns 99.83.136.103 and 75.2.113.119
Sandbox (dns-gpu-test) — resolver config
# Generated by Docker Engine.
nameserver 127.0.0.11
search nvidia.com nvprod.nvidia.com client.nvidia.com nvclient.nvidia.com
options edns0 trust-ad ndots:0
# Based on host file: '/etc/resolv.conf' (internal resolver)
# ExtServers: [10.18.1.96]
# Overrides: [nameservers]
# Option ndots from: internal
Sandbox — external DNS (broken)
getent hosts google.com # (no output)
getent hosts gateway.discord.gg # (no output)
getent hosts integrate.api.nvidia.com # (no output)
Sandbox — host alias (working)
getent hosts host.openshell.internal
172.18.0.1 host.openshell.internal
Docker's internal resolver (127.0.0.11) correctly resolves host.openshell.internal → 172.18.0.1, but fails to forward external queries to 10.18.1.96.
Sandbox — DNS tooling unavailable
nslookup google.com # bash: nslookup: command not found
dig google.com # bash: dig: command not found
apt update && apt install -y dnsutils
# Error: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
# Error: Could not open file /var/lib/dpkg/status - open (13: Permission denied)
sudo apt update # bash: sudo: command not found
DNS validation is limited to getent — nslookup/dig cannot be installed inside the sandbox. External getent queries return empty.
Impact
- GPU sandboxes on DGX Spark cannot resolve external domains from inside the sandbox, even though the host resolves them correctly.
- Breaks all tooling and agents inside the sandbox that rely on DNS to reach external services (NVIDIA API endpoints, Discord, package registries, etc.).
- Prevents passing the DNS validation step described in NVBug 6180113.
Assessment / Relation to Existing Fixes
This appears to be the same Docker-driver/GPU sandbox DNS failure family as NVBugs 6180113 and 6089987, now observed on DGX Spark with v0.0.65.
PR #3623 preserves host.openshell.internal mapping correctly (host alias resolves), but external DNS forwarding via Docker's internal resolver (127.0.0.11 → 10.18.1.96) remains broken in this environment.
Requested Action
- Confirm whether the fix from PR #3623 is expected to fully resolve sandbox DNS on DGX Spark GPU sandboxes in this version.
- Investigate why Docker's internal resolver (
127.0.0.11→10.18.1.96) fails to resolve external domains inside the NemoClaw sandbox while host DNS (127.0.0.53) works. - Provide either:
- A configuration change (Docker/OpenShell/NemoClaw) that makes DNS resolution inside the GPU sandbox match host behavior, or
- An updated version with the full DNS fix applied and instructions to validate on DGX Spark using
getent hostsfor the four domains listed above.
Confirming the same DNS failure on a second DGX Spark, on NemoClaw v0.0.62 (reporter is on v0.0.65 — so this spans at least v0.0.62 through v0.0.65).
Identical signature:
getent hosts host.openshell.internal → 172.19.0.1 (resolves) getent hosts google.com → (empty) getent hosts api.telegram.org → (empty)
Sandbox /etc/resolv.conf:
nameserver 127.0.0.11
search localdomain
ExtServers: [192.168.1.1]
Host DNS resolves all external domains correctly (upstream is the LAN router at 192.168.1.1). Inside the sandbox, Docker's internal resolver (127.0.0.11) resolves the host.openshell.internal alias but does not forward external queries to the upstream ExtServer.
Notable: messaging/search/inference still function because that traffic routes through the OpenShell L7 proxy (resolved host-side), not via direct sandbox DNS. So the breakage is invisible for policy-proxied endpoints but blocks any in-sandbox tool that does its own DNS resolution.
One possibly-relevant environment detail: the host runs Tailscale (note the .ts.net search domain), which manages /etc/resolv.conf on the host. There may be an interaction between Tailscale's resolver and Docker's internal-resolver forwarding worth checking.
Confirmed this is a net-new follow-on, not a regression of the host.openshell.internal fix (PR #3623). That fix is working here: the alias resolves inside the sandbox via --add-host (mount-namespace /etc/hosts), which is why messaging/search/inference still work through the OpenShell L7 proxy. The remaining failure is purely external DNS forwarding for in-sandbox tools that do their own resolution.
Root cause split:
- NemoClaw side: the GPU-recreate path injects a fallback external resolver via
--dnsonly when the host/etc/resolv.confis loopback-only and a non-loopback upstream is found in/run/systemd/resolve/resolv.conf. On DGX Spark / Tailscale hosts that gate does not produce the reachable upstream, so the sandbox falls back to Docker's embedded resolver. The ExtServers value shown as a comment in the sandbox resolv.conf is Docker-written metadata and is not (and cannot be) consumed by NemoClaw. - Environment/driver side: whether Docker's embedded resolver (127.0.0.11) can forward to the host's real upstream depends on the Docker daemon DNS config and the host resolver (here, Tailscale-managed
/etc/resolv.confwith a.ts.netsearch domain). Those are outside the GPU-patch layer.
Proposed direction: harden NemoClaw's fallback so it discovers and validates a reachable external resolver and injects it as explicit --dns on the bridge/preserve network path even when the host resolv.conf is not strictly loopback-only, gated on a reachability check. The daemon/host-resolver portion should be tracked with the OpenShell driver and host config owners.
To localize the gate being missed, could you attach: host /etc/resolv.conf, /run/systemd/resolve/resolv.conf, the Docker daemon DNS config, and docker inspect HostConfig.Dns for the sandbox container? (Note: in-sandbox testing is limited to getent since nslookup is absent from the image, tracked separately.)
Still reproduces after upgrading to NemoClaw v0.0.71 / OpenShell 0.0.71 (Docker driver, DGX Spark, aarch64).
Same signature:
getent hosts host.openshell.internal → 172.19.0.1 (resolves) getent hosts google.com → (empty) getent hosts api.telegram.org → (empty)
Sandbox /etc/resolv.conf:
nameserver 127.0.0.11
search localdomain
ExtServers: [192.168.1.1]
Host resolves all external domains correctly (upstream is the LAN router at 192.168.1.1). Inside the sandbox, Docker's internal resolver (127.0.0.11) resolves the host.openshell.internal alias but does not forward external queries to the upstream ExtServer.
The OpenShell 0.0.44 → 0.0.71 bump did not change this behavior, which rules out the OpenShell version as the cause and points back to the Docker-driver resolver forwarding on this host environment.
Functional impact stays limited: policy-covered traffic (Telegram, Brave, inference) routes through the OpenShell L7 proxy and resolves host-side, so those work despite broken in-sandbox DNS. Only tools doing their own in-sandbox DNS resolution are affected.
Possibly relevant host detail: this host runs Tailscale (note the .ts.net search domain), which manages /etc/resolv.conf on the host — may be interacting with Docker's internal-resolver forwarding to 192.168.1.1.
@PrachiShevate-nv could you confirm whether QA is comfortable closing this as expected / unsupported direct-DNS behavior for Docker-driver GPU sandboxes?
Current close rationale:
- The reported
host.openshell.internalpath works, so the PR #3623 host-alias fix is behaving as intended. - Policy-covered NemoClaw traffic still works because it routes through the OpenShell L7 proxy and resolves host-side.
- The remaining failure is direct in-sandbox external DNS via
getent hosts <external-domain>, which appears Docker-driver / host-resolver dependent and is not clearly documented as a supported NemoClaw contract. - PR #5539 tracks adding diagnostics/warnings for this case rather than changing sandbox DNS behavior.
I would not close this as fixed/completed. The proposed resolution would be "expected / known limitation unless QA requires direct external DNS from inside the sandbox as a supported criterion."
Closing as expected / unsupported direct-DNS behavior, not as fixed.
OpenShell policy-covered sandbox egress is expected to flow through the OpenShell policy proxy/L7 gateway so destination, port, binary, and request rules can be enforced. Policy-covered NemoClaw traffic is working through that path, and host.openshell.internal resolves, so the prior host-alias fix is behaving as intended.
The remaining failure is direct in-sandbox DNS resolution via getent hosts <external-domain>. That bypasses the OpenShell policy/proxy success path and is Docker-driver / host-resolver dependent rather than a supported NemoClaw/OpenShell network-policy contract. Diagnostics or docs can continue separately, but this issue does not represent a failing policy-covered network path.