Guest littlegreenguy Posted February 10, 2005 Report Share Posted February 10, 2005 (edited) I recently installed Mandrake 10.1. Everything seems to have gone smoothly, except I can't connect to Internet by host names. I can ping any host and browse a web site using its IP address. So the computer IS connected to outside world, just that I can't use hostnames to connect. I seem to have a DNS configuration problem here. It confuses me - when I ping a hostname, the name was not resolved, but when I ran "nslookup on any hostname, the system seemed to find the DNS server with no problem. Anyway, here's some detailed setup information. Hope someone here can point me to the right direction. I set up the linux machine on a small home LAN, with a Linksys router connecting to the ISP's high speed network. Contents of several files: /etc/sysconfig/network-scripts/ifcfg-eth0: DEVICE=eth0 BOOTPROTO=static IPADDR=192.168.1.102 NETMASK=255.255.255.0 NETWORK=192.168.1.0 BROADCAST=192.168.1.255 ONBOOT=yes MII_NOT_SUPPORTED=yes WIRELESS_ENC_KEY="" /etc/resolv.conf: # search myhost.com nameserver 199.233.104.88 nameserver 199.233.104.76 # ppp temp entry /etc/sysconfig/network: HOSTNAME=aquila NETWORKING=yes GATEWAY=192.168.1.1 Here is the output of ping/nslookup/route -n commands: [root@aquila root]# nslookup www.goggle.com Server: 199.233.104.88 Address: 199.233.104.88#53 Name: www.goggle.com Address: 66.70.14.129 [root@aquila root]# ping www.goggle.com ping: unknown host www.goggle.com [root@aquila root]# ping 66.70.14.129 PING 66.70.14.129 (66.70.14.129) 56(84) bytes of data. 64 bytes from 66.70.14.129: icmp_seq=1 ttl=50 time=41.9 ms 64 bytes from 66.70.14.129: icmp_seq=2 ttl=50 time=63.7 ms 64 bytes from 66.70.14.129: icmp_seq=3 ttl=50 time=31.7 ms --- 66.70.14.129 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 31.798/45.833/63.736/13.323 ms [root@aquila sysconfig]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 please Edited February 10, 2005 by littlegreenguy Quote Link to comment Share on other sites More sharing options...
User Posted February 10, 2005 Report Share Posted February 10, 2005 Try this and see if it works route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0 then try to get to sites. If it does then go into System|Configuration|Configure Your Computer and recheck/redo the network adapter settings for eth0. Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted February 10, 2005 Report Share Posted February 10, 2005 (edited) I think that does the same thing as my typical solution. In /etc/sysconfig/network, I add to what you have: GATEWAYDEV=wlan0 Substituting, of course, the interface that is connected to your router. After doing a service network restart as root, you should see the same change in the routing table as the above command would create. I think so, anyway. Just another option. Edited February 10, 2005 by Steve Scrimpshire Quote Link to comment Share on other sites More sharing options...
Guest littlegreenguy Posted February 10, 2005 Report Share Posted February 10, 2005 I tried these but it's still not working .... Here's the output of ifconfig: eth0 Link encap:Ethernet HWaddr 00:40:D0:0C:F9:0A inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::240:d0ff:fe0c:f90a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:15377 errors:0 dropped:0 overruns:0 frame:0 TX packets:2181 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2351992 (2.2 Mb) TX bytes:271543 (265.1 Kb) Interrupt:10 Base address:0x2000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:159 errors:0 dropped:0 overruns:0 frame:0 TX packets:159 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:11842 (11.5 Kb) TX bytes:11842 (11.5 Kb) I wonder what inet6 is. Could this be related to my problem? Quote Link to comment Share on other sites More sharing options...
User Posted February 10, 2005 Report Share Posted February 10, 2005 inet6 is IPV6 and that is the IPv6 address, assigned for your eth0. Currently the net is IPV4. You can disable the service in Services to not start on boot. Try that. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.