in ubuntu 11.04, i'm trying to change dns to force it to point to another server let's assume the domain name is www.mysite.com and the ip 96.32.66.xx
i changed /etc/hosts but when i open the browser it dosen't work.
if i ping 96.32.66.xxx it works on windows i applied the same change in system32/drivers/etc/hosts and it works
this is my /etc/hosts:
127.0.0.1 trustweb-Linux localhost.localdomain localhost
::1 trustweb-Linux localhost6.localdomain6 localhost6
127.0.1.1 trustweb-Linux
96.32.66.xxx www.miosito.com
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
I execute this code to refresh the net cache
sudo /etc/init.d/networking restart
what's wrong?
/etc/hosts
. That's a file with a syntax error that will cause the very behaviour that you describe. Show people your actual data, not something that you made up in the question.