Just in case you want to flush the DNS cache on an OSX system for whatever reason, this command gets the job done:
dscacheutil -flushcache