Common DNS queries like
ping will first get the IP of a hostname if it exists in /etc/hosts.
How to find the hostname of an IP using /etc/hosts if it has the mapping on Linux?
host IP will skip the /etc/hosts as I tested.
Mar 24, 2018 at 7:53 pm