Like the title says, running os x 10.10.1. if i have an entry in my hosts file and do a
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
- reload the
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo 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 188.8.131.52 admin.devsite1.com