Flushing DNS Cache on Mac

I've been wrestling with /etc/hosts changes all day (making changes and not having the names resolve to what I specified in the hosts file).

Then finally was shown:

lookupd -flushcache

.