LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-01-2009, 09:32 AM   #1
shanecaldeiro
LQ Newbie
 
Registered: May 2009
Posts: 24

Rep: Reputation: 15
getting ping through ip but ping yahoo.com unknown host


I have ubuntu installed on my system and testing server centos4. getting ping on gateway ip but cant get ping on yahoo.com unknown host yahoo.com and wget error Resolving www.apache.org... failed: Temporary failure in name resolution.
 
Old 05-01-2009, 09:46 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Do you have the DNS server from your provider in
/etc/resolv.conf?

It should read
Code:
nameserver xxx.xxx.xxx.xxx
type the following command
Code:
sudo nano /etc/resolv.conf
and add the DNS from your provider
 
Old 05-01-2009, 09:57 AM   #3
shanecaldeiro
LQ Newbie
 
Registered: May 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
Do you have the DNS server from your provider in
/etc/resolv.conf?

It should read
Code:
nameserver xxx.xxx.xxx.xxx
type the following command
Code:
sudo nano /etc/resolv.conf
and add the DNS from your provider
DNS is given nameserver 208.67.220.220
nameserver 127.0.0.1
 
Old 05-01-2009, 10:00 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Any firewall that could block DNS requests on port 53?

What is the output from
Code:
nslookup www.google.com
 
Old 05-01-2009, 10:02 AM   #5
shanecaldeiro
LQ Newbie
 
Registered: May 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
Any firewall that could block DNS requests on port 53?

What is the output from
Code:
nslookup www.google.com
;; connection timed out; no servers could be reached
 
Old 05-01-2009, 10:10 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Then there is an issue with the firewall.
Try to disable the firewall.
If you have a router, look if there is a firewall at the router.
 
Old 05-01-2009, 10:17 AM   #7
shanecaldeiro
LQ Newbie
 
Registered: May 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
Then there is an issue with the firewall.
Try to disable the firewall.
If you have a router, look if there is a firewall at the router.
i have used /etc/init.d/iptables stop
and used nslookup www.google.com getting error
;; reply from unexpected source: 192.168.132.10#53, expected 208.67.220.220#53
;; connection timed out; no servers could be reached
 
Old 05-01-2009, 10:21 AM   #8
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
It may also be that your provider is blocking DNS queries to the opendns.com servers. Does your provider have a DNS server? If turning off your firewall doesn't fix things (if it does, let us know, you don't want to leave it off), you may want to try putting your ISP's DNS server IP's into resolv.conf instead of the opendns.com ones.

HTH

Forrest
 
Old 05-01-2009, 10:27 AM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
are you running in a virtual machine?
what is the exact output of
Code:
cat /etc/resolv.conf
try to remove everything except
Code:
nameserver 208.67.220.220
 
Old 05-01-2009, 10:35 AM   #10
shanecaldeiro
LQ Newbie
 
Registered: May 2009
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by repo View Post
are you running in a virtual machine?
what is the exact output of
Code:
cat /etc/resolv.conf
try to remove everything except
Code:
nameserver 208.67.220.220
on the virtual machine the downloading is working but not working through the testing server. i have deleted everything except
nameserver 208.67.220.220 and still the same error
 
Old 05-01-2009, 10:45 AM   #11
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
More and more it is seeming to me that your ISP is blocking DNS queries to outside servers. They are probably catching all port 53 traffic and directing it to their DNS server (thus the message that your response came from an unexpected source. Try changing your nameserver to 192.168.132.10 or dynamically assigned.

HTH

Forrest
 
  


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
Bind9 ,host does reslove a dns name but ping says unknown host Byenary Linux - Networking 10 01-12-2011 01:33 AM
Unable to ping : ping: unknown host PKumar Linux - Networking 4 10-31-2007 12:43 AM
error unknown host given when trying to ping FQDN cnts-student Linux - Newbie 2 03-18-2007 01:17 PM
Slackware 10.2 - ping: unknown host TBomb Linux - Networking 4 04-17-2006 06:50 PM
Unknown Host <Linuxmachinename> / Unable to ping by host name nishi_k_79 Linux - Networking 4 11-01-2003 01:24 PM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration