LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-28-2009, 01:54 AM   #1
InK[Cl]
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
[SOLVED] cannot resolv specific server (google.com)


Hello.... this is my very first post in this forum, although I've read it a lot of times.

I have the strangest problem that I don't even understand. From several days ago, I haven't been able to resolv the server google.com, so I cannot make any searches or check my gmail. The strange is that I can see every other server and any other webpage.

I know is a software specific issue, because I don't have that problem using windows on the same machine. The problem is the same wether I use kde4 or gnome.

I'm using Debian Sid, connecting wireless with an intel 3945 chipset (the problem remains on wired connection)

Some more info:

Code:
Manutara:/home/ink# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.2.1
192.168.2.1 is my wireless router

Any help please?

thank you very much

Last edited by InK[Cl]; 04-28-2009 at 06:19 PM.
 
Old 04-28-2009, 03:54 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
check the output of command

dig www.google.com @192.168.2.1
if this does not give ip , then you have to check if the wireless router is able to respond to DNS requests

this can be checked quickly by editing resolv.conf and adding 4.2.2.6 in the servers
if this resolves the issue then the problem is with your wireless router not responding properly to DNS requests.
 
Old 04-28-2009, 08:58 AM   #3
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
Is this an Avahi issue where Avahi has captured google.com and has appended .local? You could look in /etc/avahi/hosts to see if google is there.
If this were on a Windows box you could do a ipconfig /flushdns and ipconfig /registerdns but I don't know how to flush the dns cache on a Linux box.
The DNS service on the linksys router is ok because the windows box can reach google.com so that would seem to put the onus on the linux box and its dns cache and I'm thinking that has to be avahi.
 
Old 04-28-2009, 09:12 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
apttiude update
apttiude install ncsd
/etc/rc.d/init.d/nscd restart


that will flush the DNS cache on Linux, and may possibly resolve your connectivity as well. ncsd is a caching name service daemon.

Avahi.. now theres a service that is completely useless for me.. I don't use it, don't need it, I wish it weren't installed by default on a Debian Desktop install.

Last edited by farslayer; 04-28-2009 at 09:13 AM.
 
Old 04-28-2009, 05:30 PM   #5
InK[Cl]
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
thank you for your quick answers... this are my advances in the subject

- Adding 4.2.2.6 to resolv.conf did not solve the problem

- Output of dig
Code:
ink@Manutara:~$ dig www.google.com
;; Truncated, retrying in TCP mode.
;; Connection to 192.168.2.1#53(192.168.2.1) for www.google.com failed: connection refused.
same as the output of nslookup

- My avahi/hosts file is empty (all lines are commented)

- Flushing dns (installing nscd) did not solve the problem

something strange:
Code:
ink@Manutara:~$ ping -c 2 google.com
PING google.com (74.125.19.19) 56(84) bytes of data.
64 bytes from google.com (74.125.19.19): icmp_seq=1 ttl=245 time=169 ms
64 bytes from google.com (74.125.19.19): icmp_seq=2 ttl=245 time=167 ms
the issue is with www.google.com and not with google.com. Using OpenDNS partially solves the problem, but it can't resolv pop.google.com or imap.google.com to download mail.

more ideas??.. what about the connection refused message

Last edited by InK[Cl]; 04-28-2009 at 05:38 PM. Reason: correcting information
 
Old 04-28-2009, 06:18 PM   #6
InK[Cl]
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I managed to solve the problem. I called my ISP to check the dns servers I was using. They gave me a new dns and now I can resolv www.google.com.

OpenDNS solves the problem. The reason I couldn't resolv imap.google.com is a server side problem, now it has to be replaced for any of the following:

imap.gmail.com
imap.googlemail.com
gmail-imap.l.google.com

thanks to all
 
Old 04-28-2009, 06:44 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Nothing like defective DNS to spoil your day..
 
  


Reply



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
Newbie DNS server & /etc/resolv.conf problem (CentOS 5.x) aspasia Linux - Newbie 0 03-24-2008 05:10 PM
Specific tips for old server Scorpion_Linux Linux - Server 7 01-03-2008 08:13 AM
Specific tips for old server Scorpion_Linux Linux - Server 1 01-03-2008 04:05 AM
Cento OS 4.4 server with no resolv.conf? YAOMK Linux - Server 3 12-03-2007 08:54 AM
dns server and /etc/resolv.conf freeosfreesoul Linux - Laptop and Netbook 2 09-02-2005 06:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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