Flushing (clearing) the DNS cache under Ubuntu 12.04/11.10

In this article we will see some methods for flushing DNS cache under a system running Ubuntu 12.04/11.10 or older. But before showing you these commands, let's see some of the advantages of flushing DNS cache: