Check IP or hostname resolution

Table of Contents

Information

How to check properly IP/hostname resolution

Procedure

  • nslookup will perform a DNS request
  • getent hosts <hostname> will perform a resolution by looking first in /etc/hosts, and if not found, then in DNS (/etc/nsswitch.conf)
Back to top