LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-29-2009, 02:47 PM   #1
morganmcdermott
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.0
Posts: 14

Rep: Reputation: 0
Ping works, but browsers cannot resolve domains


Hello,
On my new Debian Squeeze installation (kernel 2.6.26) I'm running into a problem with browsers. Apt-get can access the debian repositories just fine, and ping has no problem resolving hostnames. However, when I run konqueror or iceweasel and try to access any sites, the browsers can't resolve the domains (The browser could not find the host server for the provided address.)

My /etc/resolv.conf looks like this:
nameserver 172.16.0.1

However, I doubt that the problem is with resolv.conf since ping can resolve any arbitrary existing domain name (I've tried google.com, linuxquestions.org, debian.org, and pandora.com).

Ideas?

EDIT:
I forgot to try accessing sites directly via IP earlier. Even when I attempt to load, say, 74.125.45.100 (google), I still get the "host cannot be found" error. I doubt also that this is a firewall issue, since internet access works fine on XP and slackware on the same box.

Thanks for taking the time to read and reply to this =).
~Morgan McDermott

Last edited by morganmcdermott; 05-29-2009 at 02:58 PM.
 
Old 05-29-2009, 02:57 PM   #2
anarchyinc
Member
 
Registered: Dec 2008
Distribution: Debian SID Xfce
Posts: 40

Rep: Reputation: 16
If you can ping but not connect you have yourself a DNS issue. Try
(write this down)http://64.233.169.103<-- google. If that works then you indeed have a DNS issue.

Last edited by anarchyinc; 05-29-2009 at 02:58 PM.
 
Old 05-29-2009, 03:05 PM   #3
morganmcdermott
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks, anarchyinc.
Trying to access google with http://64.233.169.103 yields the same result: host cannot be found.

I'll research the possible DNS problem as best I can. Any suggested fixes?
 
Old 05-29-2009, 03:17 PM   #4
anarchyinc
Member
 
Registered: Dec 2008
Distribution: Debian SID Xfce
Posts: 40

Rep: Reputation: 16
No, if that didn't work then DNS is not the issue. That is what the test has proven. Looks like now we either have incorrect proxy server.... Look at the proxy first, if you have one turned on, turn it off.

Or your tcp port is blocked somehow, pings go though a different port than web access.


*have you tried hitting refresh just in case, sometimes my firefox times out like that. My kid automaticly restarts the modem and I keep telling her just to hit refresh first...

Last edited by anarchyinc; 05-29-2009 at 03:19 PM. Reason: added
 
Old 05-29-2009, 03:32 PM   #5
morganmcdermott
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Mmm well, unfortunately it doesn't appear that any proxy is configured... I also made sure to refresh the page several times after I received the error, but to no avail.

I've also experimented with completely disabling my firewall, but that didn't change anything either. This is really bizarre.

Thanks again for all your help, anarchyinc. Any more possibilities?
 
Old 05-29-2009, 03:40 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
disable IPv6 in your system and in firefox/iceweasel.

http://www.debian-administration.org...r_a_2.6_kernel

http://blog.williamkow.net/2009/03/090313a.html

See if that changes things for you..

Usually it just causes delays or DNS lookup failures so I'm not sure this is your issue.

Last edited by farslayer; 05-29-2009 at 03:41 PM.
 
Old 05-29-2009, 04:16 PM   #7
anarchyinc
Member
 
Registered: Dec 2008
Distribution: Debian SID Xfce
Posts: 40

Rep: Reputation: 16
Quote:
Originally Posted by farslayer View Post
disable IPv6 in your system and in firefox/iceweasel.

http://www.debian-administration.org...r_a_2.6_kernel

http://blog.williamkow.net/2009/03/090313a.html

See if that changes things for you..

Usually it just causes delays or DNS lookup failures so I'm not sure this is your issue.
Did this work? I forgot about this little bug. Can't remember what causes it though.
 
Old 05-30-2009, 02:37 AM   #8
morganmcdermott
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Sorry for the delay in response. I've been away all day. Going to try disabling IPv6 now.
 
Old 05-30-2009, 02:59 AM   #9
morganmcdermott
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware 10.0
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by farslayer View Post
disable IPv6 in your system and in firefox/iceweasel.

http://www.debian-administration.org...r_a_2.6_kernel

http://blog.williamkow.net/2009/03/090313a.html

See if that changes things for you..

Usually it just causes delays or DNS lookup failures so I'm not sure this is your issue.
This worked perfectly. Many thanks, AnarchyInc. I would have never guessed that having IPv6 enabled was the culprit.

For future reference, I specifically added these lines to /etc/modprobe.d/00local:
Code:
alias net-pf-10 off
alias ipv6 off
Since I run KDE I also added this to /etc/environment but I'm not sure if it's necessary

Code:
"Google finally revealed that you must add 
    KDE_NO_IPV6=true 
    to /etc/environment."
IPv6 was already disabled in iceweasel.

Thanks again, AnarchyInc =)!
 
Old 05-30-2009, 06:43 PM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
From your description of the issue I wasn't sure that was the cause either.. but at least it worked out in the end.

Glad to hear you are up and running
 
  


Reply

Tags
browser, debian, dns, host, ipv6, resolving



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 does not resolve name while nslookup does jmonatsys0 Linux - Networking 6 09-07-2010 03:00 PM
Linux BIND refuses to resolve Microsoft domains??? ddekeyser2000 Linux - Server 12 02-03-2009 12:14 PM
Can ping websites , but unable to browse them using browsers jayakrishnan Linux - Networking 5 09-04-2008 01:33 AM
Can't Resolve Sites, But Can Ping Ody Linux - Networking 1 12-30-2002 10:39 PM
HELP! Caching DNS server wont resolve .EDU domains? spadesmaster Linux - Networking 0 04-30-2002 10:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:05 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