I seem to need to do this just infrequently enough that I can’t manage to remember how and just frequently enough that it’s becoming a pain to look it up every time. So, mostly for the sake of my own sanity:
$ dscacheutil -flushcache
There. Now that I’ve bothered to write it down I’ll probably never forget it again. Or not.