How do I force an ip address/host name pair, so that on my computer,
www.mydomain.com will be directed to a certain IP address, rather than through the internet's name server?
For example, on windows, I can edit
c:\windows\system32\drivers\etc\hosts
and add a line
111.222.333.444
www.mydomain.com
And then all requests for
www.mydomain.com will be forced to 111.222.333.444
I have added the same to /etc/hosts and then edited /etc/host.conf so that it says:
order hosts, bind
multi on
But still it does not work. Is there another file that needs to be edited?
(I have restarted with /etc/init.d/network restart) and it still does not work.
Thanks!
Si
PS I am running Fedora Core 1.