# Get "http://example.com": dial tcp: lookup example.com: no such host

- **ID:** `go/http-client-do-error`
- **Domain:** go
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

DNS resolution failed; the hostname does not exist or DNS server unreachable.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.20 | active | — | — |

## Workarounds

1. **** (80% success)
   ```
   Use custom DNS resolver: net.Resolver{PreferGo: true, Dial: ...}
   ```
2. **** (90% success)
   ```
   Check error type: if dnsErr, ok := err.(*net.DNSError); ok { handle }
   ```

## Dead Ends

- **** — May not be static; breaks if IP changes. (50% fail)
- **** — DNS issue persists; retries fail. (60% fail)
