@d10r Thanks for confirming. This is the same known bug.
@hashr47 Thanks for the update. Good to know it affects Agent mode too. The inconsistency you’re seeing may depend on whether a particular command goes through the sandboxed terminal path or not.
Workaround for both of you: In Cursor Settings > Agents, switch from “Auto-run in sandbox” to a non-sandboxed auto-run mode. This bypasses the sandbox entirely, so DNS works normally. The trade-off is losing the sandbox’s security protections for terminal commands, which I understand might not be ideal.
This is a known issue that our team is tracking. A related NixOS variant is also tracked under the same root cause: Cursor’s sandbox unable to run any command: missing zsh mount in sandbox. We’ll update this thread when a fix ships.