Since MacOS Sierra (I I think edition below) require their own utility to flush DNS cache, this tiny script may make it easier.