$ dscacheutil -q host -a name localhost name: localhost ipv6_address: ::1 name: localhost ip_address: 127.0.0.1 $ ls -l /etc/hosts lrwxr-xr-x 1 root 26B Aug 19 20:07 /etc/hosts -> /Users/npatelv/.home/hosts $ cat /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost 127.0.0.1 localhost.local 127.0.0.1 localhost.localdomain 127.0.0.1 localhost4 127.0.0.1 localhost4.localdomain4 ::1 localhost.local ::1 localhost.localdomain ::1 localhost6 ::1 localhost6.localdomain6