To flush the DNS cache on Mac OSX , you should use this command

lookupd -flushcache

type it in the Terminal program usually found in your Utilities folder in Applications.

God Bless