Fix · git · DNS
GitHub push failed: “Could not resolve host: github.com”
This is a network/DNS problem. It’s common on VPS boxes, corporate networks, and some DNS providers.
Quick diagnosis
# DNS nslookup github.com # or # dig +short github.com # HTTP connectivity curl -I https://github.com | head
Most common fixes
- Change DNS resolver (fastest): use 1.1.1.1 / 8.8.8.8 / your local resolver.
- Disable broken IPv6 (some VPS): if IPv6 DNS works but routing is broken.
- Proxy settings: check http_proxy/https_proxy env vars.
- Firewall / DPI: some networks block GitHub intermittently.
Verify
git ls-remote https://github.com/warkcod/openclawdocs.com.git | head # then git push