how to use flush dns command code example Example 1: flush dns ipconfig /flushdns Example 2: flush dns sudo discoveryutil udnsflushcaches