DNS resolution failed ENOTFOUND
April 30, 2026 ยท View on GitHub
Playbook ID: dns-enotfound
Category: network
Severity: high
Tags: dns, network, resolution, enotfound
What this failure means
DNS resolution failed for a hostname. The domain name could not be resolved to an IP address, or there is no network connectivity.
Common log signals
ENOTFOUND
getaddrinfo ENOTFOUND
Name or service not known
nodename nor servname provided
DNS resolution
cannot resolve hostname
Diagnosis
ENOTFOUND errors occur when:
- The hostname is mis-spelled or not resolvable in the current network.
- DNS servers are unreachable or not configured correctly on the CI runner.
- The private hostname is not registered in the local DNS or service discovery system (e.g., Kubernetes DNS).
- Network connectivity is missing or blocked by a firewall.
- The CI runner has no internet access (for public hostnames).
The error typically appears as getaddrinfo ENOTFOUND <hostname> or similar DNS resolution failures.
Fix steps
-
Verify the hostname is spelled correctly and resolvable:
nslookup <hostname> dig <hostname> curl -I https://<hostname> -
Check if DNS is working at all:
nslookup 8.8.8.8 curl -I https://google.com -
If the hostname is a private service (database, cache, etc.), verify:
- The service is running and accessible.
- The service name matches the configured hostname exactly.
- On Kubernetes: the service is in the same namespace and reachable via DNS.
- The CI environment has network access to the service.
-
Check the application's configuration for the correct hostname:
grep -r "<hostname>" . --include="*.env" --include="*.yml" --include="*.yaml" -
If DNS is misconfigured, update the application configuration to the correct hostname or service name.
Validation
nslookup <hostname>ordig <hostname>returns a valid IP address.curl -I https://<hostname>completes without DNS errors.- Re-run the failing application or test.
Likely files to inspect
.env.env.example.github/workflows/*.ymldocker-compose.ymlconfig.yaml
Run Faultline
faultline analyze build.log
faultline explain dns-enotfound
faultline workflow build.log --json --mode agent
Search phrases this page answers
- DNS resolution failed ENOTFOUND
- Network: dns resolution failed enotfound
- nodename nor servname provided
- faultline explain dns-enotfound
Generated from playbooks/bundled/log/network/dns-enotfound.yaml. Do not edit directly โ run make docs-generate.