[SOLVED] Problem Connect to Internet...Ping :Unkown host www.yahoo.com
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unles you have a nameserver running on 192.168.2.1 then you will not be able to resolve anything at all, resulting in your current problem.
If you use DHCP (like, your belkin router gets an IP address from your ISP and/or from your modem, and then your computer gets an IP address from the router), then your /etc/resolv.conf file should contain two nameserver entries, those being the nameservers your ISP provides for your use, followed by the "Search Belkin" entry.
So if what I wrote here basically describes your internet connection, then I suggest you try running DHCP again for your externally connected network device, and re-check resolv.conf to see if it has been updated properly. If you do NOT use DHCP for some reason, you will need to manually enter your nameserver addresses into resolv.conf before you can resolve any internet hosts.
In the future, please let us know what Linux you are using, and when describing such a problem, tell us how you are connected to the internet, as repair procedures will vary depending on these factors.
Welcome to LQ
Sasha
Last edited by GrapefruiTgirl; 01-12-2010 at 01:42 PM.
when I ping 192.168.1.110
Error :from 192.168.1.108 destination host is unreachle
ANy help is very appreciated
Given the information you provided, it's hard to say anything. How are you connected? Do you connect to a router/switch? Directly? Are you using DHCP, or a static address? Behind a firewall? At home, or at an office? And what version/distro of Linux are you using?
If you're using DHCP, either restart networking, or reboot the box, to see if you get a new address/DNS config. Check it out with an ifconfig and route command, to see if you've got a default route, and a real address. If not, you'll have to verify your DNS and IP config info with your network admin.
I would start with bobshaffer2's request. I would ask on top of this, are you able to ping the gateway (What appears to be a Belkin Router)?
Also GrapefruiTgirl, this is likely to be a setting of the router to default DNS references to itself while the router will be just acting as a DNS proxy, my home router displays similar behavior to this tho is of a different manufacture. I would point out that DNS settings wouldn't be effecting the IP based pings as these won't use DNS.
Also GrapefruiTgirl, this is likely to be a setting of the router to default DNS references to itself while the router will be just acting as a DNS proxy, my home router displays similar behavior to this tho is of a different manufacture. I would point out that DNS settings wouldn't be effecting the IP based pings as these won't use DNS.
Thanks for that info, r3sistance
I based my post on the fact that my own Belkin router shows the exact functionality as is appearing in the OP's post, and that the "search" entry does still appear below my nameserver entries in resolve.conf, that's all.
And yes you are of course correct in that the IP pings will not be affected by this, as they don't require DNS, but trying to ping Yahoo.com will require DNS from *somewhere*.
I'm not as familiar with "proxifying DNS" as you may be, so if further input is needed regarding that, feel free to provide it.
Best regards,
Sasha
PS -- I notice that was your 666th post :/ oOOo creepy
Last edited by GrapefruiTgirl; 01-12-2010 at 02:10 PM.
Unles you have a nameserver running on 192.168.2.1 then you will not be able to resolve anything at all, resulting in your current problem.
If you use DHCP (like, your belkin router gets an IP address from your ISP and/or from your modem, and then your computer gets an IP address from the router), then your /etc/resolv.conf file should contain two nameserver entries, those being the nameservers your ISP provides for your use, followed by the "Search Belkin" entry.
So if what I wrote here basically describes your internet connection, then I suggest you try running DHCP again for your externally connected network device, and re-check resolv.conf to see if it has been updated properly. If you do NOT use DHCP for some reason, you will need to manually enter your nameserver addresses into resolv.conf before you can resolve any internet hosts.
In the future, please let us know what Linux you are using, and when describing such a problem, tell us how you are connected to the internet, as repair procedures will vary depending on these factors.
Welcome to LQ
Sasha
Thank you Sasha,
I went to /etc/sysconfig/network which solved the problem since I assigned a diffrent Gateway in the file.
I'm not as familiar with "proxifying DNS" as you may be, so if further input is needed regarding that, feel free to provide it.
Best regards,
Sasha
PS -- I notice that was your 666th post :/ oOOo creepy
I am not exactly sure what the routers do if they act as a DNS server or if they simply forward on the query and return the results as a proxy, but I have seen this behaviour.
And indeed, I had noticed it was 666, tho 666 is a misquote, it should be 616 ^^;;.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.