Domain Redirected to localhost in Ubuntu

I was facing the issue with my currently hosted website, when I was opening my website "" then it was redirecting to localhost. So solving this issue I did this steps:
Step 1:
First Ping your site : ping
It will result the ip

Step 2:
Now check the nslookup : nslookup
it will again show the result of

Step 3:
Now open : sudo gedit /etc/resolvconf/resolv.conf.d/head
Add the entry

Step 4:
sudo resolvconf -u

Step 5:
reboot the system

It will solve your problem