I've been making some updates to DNS records of a website that I administrate. Call it example.com.
host example.com returns
Host example.com not found: 3(NXDOMAIN). Naturally,
curl, and visiting the site in a browser also fail.
However, if I ssh to a different machine, all of these work as expected. My conclusion: My DNS is messed up.
To solve that, I tried
dscacheutil -flushcache (both with and without sudo), and also tried
sudo killall -HUP mDNSResponder, the flushing command new to Lion & Mtn Lion.
I confirmed with
tail -f /var/log/system.log that the
killall command purged the cache:
Nov 22 02:20:49 xxxxxxxxx mDNSResponder: SIGHUP: Purge cache
However, my problem persists. What else can I try, or what else might be my problem?