how to flush dns on command line code example Example 1: flush dns ipconfig /flushdns Example 2: flush dns sudo lookupd -flushcache