/etc/hosts
I have a couple of websites in lan that I want to connect to. I can connect by putting the ip address and then the port number but I wanted to connect via words. I went to /etc/hosts and typed
Quote:
http://ubuntuforums.org/showthread.p...share+internet |
The entries in /etc/host only effect that local computer, not the rest of the LAN.
The only time it would effect another computer is if you had a second computer not only connecting to the internet though the Ubuntu machine, but also were running dnsmasq or a full DNS server on the Ubuntu machine. You are saying you are doing neither of those things (at least not anymore), so then you are not able to pass on the entires in /etc/hosts to the other clients on the LAN. To do that, you would need to run a small DNS server on a computer in your LAN. |
/etc/hosts only works on the machine the file is on. You have to have the file on each machine.
Edit: You need the line 'order hosts,bind' in /etc/resolv.conf also, I believe. A bit of trivia: the hosts file was how ip address/machine names were passed around on the Internet before DNS was invented. |
ok thanks guys, but my other computers have windows xp. I want to connect to those website from my xp. What should I install in ubuntu? How should I configure it?
|
You set up a hosts file on the windows machine just like on your Linux machine.
It's in c:\Windows\system32\drivers\etc\ |
All times are GMT -5. The time now is 02:37 AM. |