Internet Not Working!
I have 2 web servers, a Linux one, and a Windows one, only one of which serves at a time. On the windows one, I can access the internet fine through the Gateway: 192.168.2.1. When I have exactly the same settings for the Linux machine, it can serve pages ok, but it can't access the internet.
Does anyone have any ideas as to what the problem could be? Thanks, Michael. |
Does the /etc/resolv.conf file contain any nameserver info?
Is the route correct on the linux PC and does it show the gateway is configured correctly? Look at the output of the route command |
/etc/resolv.conf is blank.
The output from the route command is: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0 169.254.0.0 * 255.255.0.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 192.168.2.1 0.0.0.0 UG 0 0 0 eth0 What does this table mean? |
The resolv.conf file must be like this:
domain my-site.com search my-site.com net my-site.net my-site.org nameserver 192.168.2.1 (anything else) (1. DNS) nameserver 192.168.2.2 (anything else) (2. DNS) --------- lynOS |
Thank You for your help, it was very useful.
I found that the problem was in the /etc/host.conf file. Before it was: order hosts,bind But it needed to be: order bind,hosts It is now working. |
All times are GMT -5. The time now is 03:07 PM. |