getent hosts: check system name resolution

dig bypasses NSS, while getent shows what an application will see.

getent hosts example.com
getent ahosts example.com
grep '^hosts:' /etc/nsswitch.conf

Verify the result

Compare getent with dig when /etc/hosts or mDNS is involved.