If you want to create your DNS cache in your machine if you are use the Operating System "ChromeOS", have to follow the steps below,
1. Open a new Chrome Tab and enter the following Address,
Then, Hit the Enter key.
Select a DNS from the menu, and Click the Clear host cache button. If the command succeeds, the system will perform any DNS lookups again.
The below steps are will do clear your DNS cache if you use the Ubuntu Operating system, have to follow the steps below,
Run the following command to flush caches,