Testing Hostname Resolution (CLI)
Values returned by the CLI built-ins nslookup
and getent
hosts
can be compared to test that hostname resolution is working:
hostname:> nslookup hostname IP-address hostname.com hostname:> getent hosts hostname IP-address hostname.com