Issue
Git push operations fail in Cursor’s integrated terminal with DNS resolution errors. Both SSH and HTTPS connections to GitHub fail. This started 2-3 days ago after updating to macOS 15.6 Sequoia.
Error Messages
SSH:
ssh: Could not resolve hostname github.com: -65563
fatal: Could not read from remote repository.
HTTPS:
fatal: unable to access github.com/username/repo.git: Could not resolve host: gihub.com
Environment
- Cursor Version: 2.4.21
- macOS Version: 15.6 (Sequoia)
- Git: Xcode’s git
What Works vs. What Doesn’t
**Works in Cursor terminal:**
- Python DNS resolution: python3 -c “import socket; print(socket.gethostbyname(github.com))”
- curl https://github.com
- Local git commands (git status, git log, etc.)
**Doesn’t work in Cursor terminal:**
- `git push` (both SSH and HTTPS)
- ping github.com
- ssh -T github.com
**Works in regular Terminal.app:**
- All git operations work perfectly
Root Cause
Cursor’s extension host runs in a sandboxed environment that cannot access macOS Network framework DNS configuration. Git’s network operations use the Network framework for DNS, which fails with error -65563. Python and curl use `libresolv` which works in the sandbox.
Attempted Solutions
1.
Granted Local Network access in System Settings (enabled, restarted Cursor, issue persists)
2.
Switched from SSH to HTTPS remote (same DNS error)
3.
Cannot modify git config from Cursor terminal (“Operation not permitted”)
Questions
1. Is this a known issue with Cursor 2.4.21 and macOS 15.6?
2. Can Cursor settings grant Network framework DNS access to the extension host?
3. Will this be fixed in a future update?