What's the best way to confirm that your /etc/hosts file is mapping a hostname to the correct IP address?
Using a tool like
dig queries an external DNS directly, bypassing the hosts file.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community