To completely clear all DNS caches in OS X Yosemite, target both MDNS (Multicast DNS) and UDNS (Unicast DNS) with two different commands.