For some reason I need to configure my computer using static IP settings to let other computers to find it. Here's my settings in /etc/network/interfaces:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto wan0 iface wan0 inet static address 192.168.2.100 netmask 255.255.255.0 gateway 192.168.2.1 nameserver 220.127.116.11 18.104.22.168 dns-domain SSG5-Serial dns-search SSG5-Serial
And then I tried to connect to the Internet using Firefox but it can never connect to the web server correctly. So I tried to ping www.facebook.com and I get:
ping: unknown host www.facebook.com
This might be a problem with the DNS server, so I used another computer to nslookup www.facebook.com and get the IP 22.214.171.124. Therefore I tried to ping 126.96.36.199 and it can ping this IP correctly.
So I try to connect to Facebook with Firefox directly using the address 188.8.131.52. Strangely, it will automatically change the address to www.facebook.com but still can't show the page. Does that mean the DNS server works?
The last step I tried is to ssh 192.168.2.100 to this computer and it works. I can log in to the computer and control it. I guess that means the IP setting is correct?
I can't figure out what the problem is and how to solve it. Thanks for any advice!