Mac OS X tip: Look up host IP addresses for hosts in /etc/hosts

OS X logo Most DNS tools (like dig and nslookup) perform IP lookups against DNS servers, ignoring /etc/hosts entries. Luckily, OS X provides the dscacheutil command to perfom a number of functions including checking local host entries. Below is an example that I used to verify the hostname/IP address combo that my system had registered in /etc/hosts.

This command helped me resolve an issue I was having. Turns out I had two entries for the host.

$ dscacheutil -q host -a name

Blog Category: 


Never we have been using such

Never we have been using such a website that can generate for us the hack for instagram instantly when you can get the password of instagram account at at here and this can generate the link to hack any password here.

Add new comment