Fedora iTOps Tube

Monday, May 14, 2012

Assistance please with /etc/hosts

Now I dont often have to mess with my local network but I have an application which needs to use dns lookup to find another PC on my local lan (it assumes anything in its config to be a name and not an IP address!)) so what I thought I could do was to add the relevant name and IP address to my /etc/hosts file and after a restart any request for the defined host name would be returned the IP address from the hosts file. However this is not working. I have added a line in hosts :-



192.168.0.8 weather.com



which I thought should work.



Can some one please help? What have I done wrong?



Stuart




No comments:

Post a Comment