Flush DNS is a command that help clears outdated or corrupted DNS resolver cache. It typically help fix network connectivity related issues.
For example: If you are having trouble accessing a specific website even after clearing the browsers cookies/history/cache and other website are working fine. You may want to try clearing the DNS cache on your Apple computer.