Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bizarre DNS problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Jiokah
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2006
Posts: 90
Location: Toronto

PostPosted: Tue Jun 17, 2008 8:59 pm    Post subject: Bizarre DNS problem Reply with quote

Hey,

I'm having a rather odd problem with the DNS on my gentoo box. Among other things, I'm using the box as a router. The problem I'm encountering is that, at seemingly random times, certain domains just don't exist anymore! So for example, somedomain.com does not resolve to anything, when it's IP address works just fine. Right now it's been doing it with google.com, but what's different about this is that accessing google.ca fixes it! I've been getting around this problem by just using the hosts file to bypass connecting with a DNS name, but an IP address instead. This problem only occurs with machines recieving internet through the gentoo box, when accessing these address on the box itself, I find no problem at all.

So, naturally, I'm horribly confused at this point. Any help would be very much appreciated!

Thanks!
Back to top
View user's profile Send private message
mlivingstone
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2005
Posts: 125
Location: Gold Coast, Australia

PostPosted: Wed Jun 18, 2008 1:00 am    Post subject: Re: Bizarre DNS problem Reply with quote

Jiokah wrote:
Hey,

I'm having a rather odd problem with the DNS on my gentoo box. Among other things, I'm using the box as a router. The problem I'm encountering is that, at seemingly random times, certain domains just don't exist anymore! So for example, somedomain.com does not resolve to anything, when it's IP address works just fine. Right now it's been doing it with google.com, but what's different about this is that accessing google.ca fixes it! I've been getting around this problem by just using the hosts file to bypass connecting with a DNS name, but an IP address instead. This problem only occurs with machines recieving internet through the gentoo box, when accessing these address on the box itself, I find no problem at all.



When google.com disappears, do other *.com addresses go too? When google.com goes, if you do a

traceroute google.com
nslookup google.com

what does it say?

Are you running your own dns relay or using your ISP's servers?

Cheers,

MarkL
Back to top
View user's profile Send private message
Jiokah
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2006
Posts: 90
Location: Toronto

PostPosted: Wed Jun 18, 2008 1:27 am    Post subject: Re: Bizarre DNS problem Reply with quote

mlivingstone wrote:
When google.com disappears, do other *.com addresses go too?


Nope, there doesn't seem to be any synchronicity here, random domains go at random times - and come back at random times.

mlivingstone wrote:
When google.com goes, if you do a

traceroute google.com
nslookup google.com

what does it say?


The only machine I can use to do this is the gentoo box itself (on which this problem doesn't exist), all other machines are windows. The next time a domain disappears I'll throw in a LiveCD and check it out.

mlivingstone wrote:
Are you running your own dns relay or using your ISP's servers?


ISP's

Thanks :)
Back to top
View user's profile Send private message
mlivingstone
Tux's lil' helper
Tux's lil' helper


Joined: 06 Feb 2005
Posts: 125
Location: Gold Coast, Australia

PostPosted: Wed Jun 18, 2008 2:18 am    Post subject: Re: Bizarre DNS problem Reply with quote

Arg, it's too early in the day to figure out multiple level quotes ;-)

you can use

tracert google.com
nslookup google.com
pathping google.com

in windows.

You can also do

ipconfig/all

to see some settings.

HTH

MarkL
Back to top
View user's profile Send private message
zeek
Guru
Guru


Joined: 16 Nov 2002
Posts: 480
Location: Bantayan Island

PostPosted: Wed Jun 18, 2008 6:11 am    Post subject: Reply with quote

Windows remembers DNS failures for 5 mins. When this happens try flushing the DNS cache with:
Code:

ipconfig /flushdns
Back to top
View user's profile Send private message
ChipB
n00b
n00b


Joined: 07 Oct 2007
Posts: 6
Location: Pacifica CA

PostPosted: Fri Jun 20, 2008 11:41 pm    Post subject: /etc/resolve? Reply with quote

Hi,

Once I had bizzare behavior of DNS where /etc/resolv.conf would be overwritten, disabling DNS, every 5 min.
I fixed it by rebooting. This was one of the very few linux problems I fixed via reboot.

More generally,

You might check your /etc/resolv.conf

Personally, I use openDNS
via

nameserver 208.67.222.222
nameserver 208.67.220.220

generally dhcpcd resets it automatically, so to use a static resolv.conf like I need to turn off the resetting.


Good luck,
Chip
Back to top
View user's profile Send private message
Jiokah
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2006
Posts: 90
Location: Toronto

PostPosted: Sat Jun 21, 2008 8:26 pm    Post subject: Reply with quote

Ok, it happened again just now. Turns out google.com works just fine, but www.google.com doesn't.

nslookup:
Code:

Name:    google.com
Addresses:  72.14.207.99, 64.233.187.99, 64.233.167.99

Name:    www.google.com (didn't give addresses)


tracert:
Code:

Tracing route to google.com [72.14.207.99]
over a maximum of 30 hops:

  1     1 ms     1 ms    <1 ms  192.168.2.1
  2     1 ms     1 ms     1 ms  192.168.0.1
  3     8 ms     7 ms    12 ms  10.148.32.1

...

Unable to resolve target system name www.google.com.


but on the gentoo box itself:
Code:

 # ping www.google.com
PING www.l.google.com (72.14.205.104) 56(84) bytes of data.
64 bytes from qb-in-f104.google.com (72.14.205.104): icmp_seq=1 ttl=247 time=8.3                                                                              7 ms
64 bytes from qb-in-f104.google.com (72.14.205.104): icmp_seq=2 ttl=247 time=11.                                                                              0 ms

--- www.l.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 8.376/9.719/11.062/1.343 ms


OK, now all I have to do to fix this is type in "http://www.google.ca" in firefox, and now:

Code:

Pinging www.google.com [72.14.205.147] with 32 bytes of data:

Reply from 72.14.205.147: bytes=32 time=9ms TTL=245
Reply from 72.14.205.147: bytes=32 time=8ms TTL=245


I tried "ipconfig /flushdns" but to no avail.

So this time, www.google.com didn't resolve and google.com did. This happens every now and then with my domains too (and my zone files aren't the problem).

Would someone at least be able to explain why accessing google.ca would temporarily fix the problem? It doesn't quite make sense.

Thanks for all the help!!
Back to top
View user's profile Send private message
Jiokah
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2006
Posts: 90
Location: Toronto

PostPosted: Wed Aug 06, 2008 3:10 am    Post subject: Reply with quote

Ok I know this thread is getting old, but just in case any body gets the same problem as I had, I found the solution.

Turns out the DNS from my ISP (Rogers) is just really, REALLY crappy. So I changed my DNS servers from automatic (from DHCP) to Verizon's DNS servers (4.2.2.1 and 4.2.2.2). Not only is DNS working good for me now, it's actually insanely fast too, before I always had to wait a second or two for a host to resolve and now it's instant.

Hope this helps someone

-Matthew
Back to top
View user's profile Send private message
mno
Guru
Guru


Joined: 29 Dec 2003
Posts: 454
Location: Toronto, Canada

PostPosted: Mon Aug 11, 2008 7:30 pm    Post subject: Reply with quote

If you're a Rogers customer, I'm not sure it's such a good idea to use Verizon's DNS. If that's the case, then I'd suggest you use the OpenDNS alternative, or you can run your own local DNS server...
_________________
"Hello and goodbye. As always." | You can't use &nbsp; here?? | Unanswered
Back to top
View user's profile Send private message
Jiokah
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2006
Posts: 90
Location: Toronto

PostPosted: Mon Aug 11, 2008 8:17 pm    Post subject: Reply with quote

Hey thanks for the suggestion, I've switched to OpenDNS. I just found two IP addressed at the bottom of the site in big orange bold text so I presume those are the addresses to use.

Just curious though, why wouldn't verizon be a good idea?

Thanks :)
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Baltimore, MD

PostPosted: Mon Aug 11, 2008 9:16 pm    Post subject: Reply with quote

If Verizon isn't your ISP, they don't have a contractual agreement to allow you to use their DNS servers. They may or may not care, but they could simply not respond to you and you would have no recourse.

On the other hand, OpenDNS is a great solution. See this Wired.com article for a couple compelling reasons why.
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum