Linux: Resolve DNS Names to IP Address
Another part of standard troubleshooting for network connections is testing your DNS server connectivity and name resolution. In Windows this is command would be nslookup; in Linux it’s:
drill <hostname>drill <hostname>drill <hostname>drill <hostname> Note
dig is an older command for doing DNS lookups. It considered legacy and has been replaced with drill in many distributions
If missing from your distribution or container, install with:
dnf -y install ldnsapt -y install ldnsutilsapk add drillpacman -Syu ldns