How to check properly IP/hostname resolution
nslookup
getent hosts <hostname>
/etc/hosts
/etc/nsswitch.conf