Tutorial showing you how to flush the DNS on a Mac including OSX Mavericks.
This video makes use of the mac terminal and dscacheutil tool.
Mac OSX Mavericks 10.9 use this.
dscacheutil -flushcache; sudo killall -HUP mDNSResponder;
Prior to 10.9 use
dscacheutil -flushcache;