LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-12-2010, 01:27 PM   #1
manthena
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
Problem Connect to Internet...Ping :Unkown host www.yahoo.com


Hi Team,
Can anyone help me out with this.


My /etc/resolv.conf entires
search Belkin
nameserver 192.168.2.1

When I ping www.yahoo.com
error:Unkown host www.yahoo.com

when I ping 192.168.1.110
Error :from 192.168.1.108 destination host is unreachle

ANy help is very appreciated

Thank you

manthena
 
Old 01-12-2010, 01:41 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
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.
 
Old 01-12-2010, 01:42 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 25,827

Rep: Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761
Quote:
Originally Posted by manthena View Post
Hi Team,
Can anyone help me out with this.

My /etc/resolv.conf entires
search Belkin
nameserver 192.168.2.1

When I ping www.yahoo.com
error:Unkown host www.yahoo.com

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.
 
Old 01-12-2010, 01:45 PM   #4
bobshaffer2
LQ Newbie
 
Registered: Mar 2005
Location: Ohio
Distribution: Several (Gentoo, Red Hat/Fedora, HP-UX, Helix)
Posts: 26

Rep: Reputation: 17
need mroe information

output from 'ifconfig -a' and 'route -n' would be helpful, and possibly 'iptables -L -v -n' if you have set up a firewall...
 
Old 01-12-2010, 02:01 PM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
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.
 
Old 01-12-2010, 02:08 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555Reputation: 555
Quote:
Originally Posted by r3sistance View Post
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.
 
Old 01-13-2010, 11:13 AM   #7
manthena
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GrapefruiTgirl View Post
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.
 
Old 01-13-2010, 05:17 PM   #8
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by GrapefruiTgirl View Post
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 ^^;;.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ping: unknown host www.google.com tcma Linux - Networking 7 03-02-2012 11:47 PM
ping: unknown host www.google.com (wireless problem) J_Szucs Linux - Software 2 11-18-2009 03:44 PM
getting ping through ip but ping yahoo.com unknown host shanecaldeiro Linux - Newbie 10 05-01-2009 10:45 AM
Any idea why this time I can not ping my LAN pc but can PING for ex. www.yahoo.com vakia Debian 5 09-28-2005 06:42 PM
Unkown Host Error- internet malikk Linux - Newbie 3 05-24-2004 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration