Like the title says, running os x 10.10.1. if i have an entry in my hosts file and do a dig or nslookup it still shows a different IP than what is in my hosts file even after trying to flush various caches.
I have tried the following..
- flush mdns and udns caches by running:
sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;
- flush cache using
dscacheutil -flushcache - reload the
discoveryd.plistfilesudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plistsudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
my hosts file looks like this..
% cat /private/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 fe80::1%lo0 localhost 166.78.60.102 admin.devsite1.com