Best Fixes
Check general network connectivity first, then inspect DNS resolver settings and whether the issue reproduces for multiple hosts.
If this happens in containers or CI, compare their DNS configuration against the host environment.
Why DNS lookups fail intermittently and how to tell network, resolver, and host issues apart.
This error means the system could not resolve a hostname through DNS at that moment. The issue might be local DNS config, network reachability, VPN state, container networking, or the upstream resolver.
Check general network connectivity first, then inspect DNS resolver settings and whether the issue reproduces for multiple hosts.
If this happens in containers or CI, compare their DNS configuration against the host environment.
Do not hardcode IPs as the long-term fix for a resolver problem you have not diagnosed.
Do not assume the internet is down when the failure may be local to one resolver path.