If you need additional context: it could be that your /etc/resolv.conf
is misconfigured or the nameserver configured there is unreachable. In case you use Docker—it also needs additional care with regards to DNS configuration, but my expertise with Docker is very limited.
4 Likes