dns flush domain code example Example 1: dns flush ipconfig /flushdns Example 2: flush dns sudo discoveryutil udnsflushcaches