Technique 1
Step 1. Open Control Panel -> Network and Sharing Center -> Change Adapter Settings
Step 2. Double click on Active Network connection
Step 3. Double click on "Internet Protocol Version 4 (TCP/IPv4)
Step 4. Click on Obtain DNS server address automatically
Step 5. Click ok to save the settings
Step 6 Open web browsers and clean cache, Cookies, and offline date
That's it
Technique 2
This technique will just stop adware from showing ads but it will not clean the adware from computer. To clean it use some adware removal tool.
Step 1. Open C:\Windows\System32\derivers\etc\hosts in text editor with Admin rights.
Step 2. add following entries and any other entries (you want to get rid of) in this file
127.0.0.1 cdncache-a.akamaihd.net
127.0.0.1 pstatic.bestpriceninja.com