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.
How to test /etc/hosts
dns;hosts
I tried this out and it seems to work as expected:echo 1.2.3.4    facebook.com >> /etc/hostsThen I ran:$ getent ahosts facebook.com1.2.3.4         STREAM facebook.com1.2.3.4         DGRAM  1.2.3.4         RAI hope this helps you!