How to flush DNS in Linux

  1. Open a terminal
  2. Type sudo /etc/init.d/nscd restart and press Enter