Method 1
Install first the nscd daemon with this command from the terminal:
sudo apt-get install nscd
Then clear your DNS data with this command:
sudo /etc/init.d/nscd restart
Method 2
You can also try to flush DNS cache with this command:
sudo /etc/init.d/networking restart
Method 3
Try also this command:
sudo /etc/init.d/dns-clean start