Flush the dns cache on mac

Mountain Lion and Lion

sudo killall -HUP mDNSResponder

Previous versions

dscacheutil -flushcache