Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 07-07-2008, 11:16 AM
=?ISO-8859-1?Q?Martin_Stegh=F6fer?=
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

> > ...
> > 10s : Query A google.com
> > 12s : Query A google.com
> > 12.01s : Response AAAA google.com : 72.14.207.99

>
> Are you sure the last response has type AAAA ?


No, it has not, I'm sorry. Of course, this is of type A.

> My first idea would be that the problem is at the queried DNS server,
> but you said this server works well with other machines and the same
> happens with other DNS servers. Are all queries aimed at the same DNS
> server ?


No, they alternate between both configured DNS-servers.

> If ipv6 is built in the kernel, there is no module. Check if
> /proc/net/if_inet6 exists, or if ifconfig reports inet6 addresses.
>
> Name resolving is not performed by the kernel, but I thought the
> resolver library sent AAAA queries only when IPv6 was enabled. It even
> seems that some versions of the resolver library send AAAA queries only
> when the system has a "suitable" IPv6 address, i.e. not loopback and
> link-local addresses only.


I'm going to check this, but at the moment I don't have access to the
concerned machine.

Thanks a lot for the response!
Reply With Quote
  #12 (permalink)  
Old 07-07-2008, 11:19 AM
=?ISO-8859-1?Q?Martin_Stegh=F6fer?=
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

> > ...
> > 10s : Query A google.com
> > 12s : Query A google.com
> > 12.01s : Response AAAA google.com : 72.14.207.99


> Are you sure the last response has type AAAA ?


No, it has not, I'm sorry. Of course, this is of type A.

> My first idea would be that the problem is at the queried DNS server,
> but you said this server works well with other machines and the same
> happens with other DNS servers. Are all queries aimed at the same DNS
> server ?


No, they alternate between both configured DNS-servers.

> If ipv6 is built in the kernel, there is no module. Check if
> /proc/net/if_inet6 exists, or if ifconfig reports inet6 addresses.


> Name resolving is not performed by the kernel, but I thought the
> resolver library sent AAAA queries only when IPv6 was enabled. It even
> seems that some versions of the resolver library send AAAA queries only
> when the system has a "suitable" IPv6 address, i.e. not loopback and
> link-local addresses only.


I'm going to check this, but at the moment I don't have access to the
concerned machine.

Thanks a lot for the response!

Edit: Wrong account, changed it...
Reply With Quote
  #13 (permalink)  
Old 07-07-2008, 11:20 AM
info@cheffestl.de
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

> > ...
> > 10s : Query A google.com
> > 12s : Query A google.com
> > 12.01s : Response AAAA google.com : 72.14.207.99


> Are you sure the last response has type AAAA ?


No, it has not, I'm sorry. Of course, this is of type A.

> My first idea would be that the problem is at the queried DNS server,
> but you said this server works well with other machines and the same
> happens with other DNS servers. Are all queries aimed at the same DNS
> server ?


No, they alternate between both configured DNS-servers.

> If ipv6 is built in the kernel, there is no module. Check if
> /proc/net/if_inet6 exists, or if ifconfig reports inet6 addresses.


> Name resolving is not performed by the kernel, but I thought the
> resolver library sent AAAA queries only when IPv6 was enabled. It even
> seems that some versions of the resolver library send AAAA queries only
> when the system has a "suitable" IPv6 address, i.e. not loopback and
> link-local addresses only.


I'm going to check this, but at the moment I don't have access to the
concerned machine.

Thanks a lot for the response!

Edit: Wrong account, changed it...
Reply With Quote
  #14 (permalink)  
Old 07-07-2008, 12:20 PM
Pascal Hambourg
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

info@cheffestl.de a écrit :
>
>>My first idea would be that the problem is at the queried DNS server,
>>but you said this server works well with other machines and the same
>>happens with other DNS servers. Are all queries aimed at the same DNS
>>server ?

>
> No, they alternate between both configured DNS-servers.


In which order ? It is a pity that you did not mention the server in
queries and replies in the wireshark trace.
Reply With Quote
  #15 (permalink)  
Old 07-07-2008, 11:46 PM
Baho Utot
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

info@cheffestl.de wrote:

[putolin]

>> Try putting this into your /etc/modprobe.conf if ipv6 is compiled as a
>> modules and not into the kernel.
>>
>> # disable autoload of ipv6 module
>> alias net-pf-10 off

>
> Already done before. The ipv6-MODULE is definitely switched off. But
> could there be any ipv6-functionality compiled into the kernel? How
> can I check?
>


To see if it is loaded (as root) :

lsmod | grep ipv6

example:
[root@desktop ~]# lsmod | grep ipv6
ipv6 256324 8

To find out if ipv6 is compiled as module:

find /lib -name ipv6.ko -print

Should return the path to kernel module named ipv6.ko

example: /lib/modules/2.6.25-ARCH/kernel/net/ipv6/ipv6.ko

otherwise it was compiled into the kernel.


If you try to load the ipv6 module and you have:

# disable autoload of ipv6 module
alias net-pf-10 off

in the /etc/modprobe.conf you get:

[root@desktop ~]# modprobe net-pf-10
FATAL: Module off not found.

--
Tayo'y mga Pinoy
Reply With Quote
  #16 (permalink)  
Old 07-08-2008, 04:39 PM
info@cheffestl.de
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

I think I resolved the issue:

I analyzed the DNS queries of windows (working without problems on the
same machine) and found out that the same effect is happening there as
well: 3 query packets have to be sent until a response is received.
The difference: Windows sends the queries with a much higher frequency
and therefore the whole progress doesn't take as much time and the
user doesn't recognize any delay.

So the problem seemed to be rather the router than the client system.
Maybe the router recognizes an UDP "connection" only after at least 3
packets have been sent from the same port to the same port (as using
UDP the router has no TCP flags signalling new connections). I don't
know, something like this...

Workaround (since I haven't got access to reconfigure the router):
Define the router IP itself as nameserver instead of the nameservers
that it suggests via DHCP. So the UDP packets have to travel only
within the LAN and the problem is avoided. The router is then able to
act as a "DNS-forwarder", asks the nameservers of the ISP for the
result and returns the result to the client.

Anyway: Hard to imagine that this effect doesn't happen all over the
linux world?! What is different in other people's linux systems? Do
they usually have shorter timeouts? Is the configuration of my router
really THAT strange and normally routers forward the DNS packets
properly? Do they ignore the DHCP-given nameservers and use the
gateway-IP as default nameserver??? I didn't reconfigure anything
strangely, the system is an almost-out-of-the-box debian!

Thanks for your help!
Reply With Quote
  #17 (permalink)  
Old 07-08-2008, 04:43 PM
info@cheffestl.de
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

I think I resolved the issue:

I analyzed the DNS queries of windows (working without problems on the
same machine) and found out that the same effect is happening there as
well: 3 query packets have to be sent until a response is received.
The difference: Windows sends the queries with a much higher frequency
and therefore the whole progress doesn't take as much time and the
user doesn't recognize any delay.

So the problem seemed to be rather the router than the client system.
Maybe the router recognizes an UDP "connection" only after at least 3
packets have been sent from the same port to the same port (as using
UDP the router has no TCP flags signalling new connections). I don't
know, something like this...

Workaround (since I haven't got access to reconfigure the router):
Define the router IP itself as nameserver instead of the nameservers
that it suggests via DHCP. So the UDP packets have to travel only
within the LAN and the problem is avoided. The router is then able to
act as a "DNS-forwarder", asks the nameservers of the ISP for the
result and returns the result to the client.

Anyway: Hard to imagine that this effect doesn't happen all over the
linux world?! What is different in other people's linux systems? Do
they usually have shorter timeouts? Is the configuration of my router
really THAT strange and normally routers forward the DNS packets
properly? Do they ignore the DHCP-given nameservers and use the
gateway-IP as default nameserver??? I didn't reconfigure anything
strangely, the system is an almost-out-of-the-box debian!

Thanks for your help!
Reply With Quote
  #18 (permalink)  
Old 07-08-2008, 11:12 PM
info@cheffestl.de
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

I think I resolved the issue:

I analyzed the DNS queries of windows (working without problems on the
same machine) and found out that the same effect is happening there as
well: 3 query packets have to be sent until a response is received.
The difference: Windows sends the queries with a much higher frequency
and therefore the whole progress doesn't take as much time and the
user doesn't recognize any delay.

So the problem seemed to be rather the router than the client system.
Maybe the router recognizes an UDP "connection" only after at least 3
packets have been sent from the same port to the same port (as using
UDP the router has no TCP flags signalling new connections). I don't
know, something like this...

Workaround (since I haven't got access to reconfigure the router):
Define the router IP itself as nameserver instead of the nameservers
that it suggests via DHCP. So the UDP packets have to travel only
within the LAN and the problem is avoided. The router is then able to
act as a "DNS-forwarder", asks the nameservers of the ISP for the
result and returns the result to the client.

Anyway: Hard to imagine that this effect doesn't happen all over the
linux world?! What is different in other people's linux systems? Do
they usually have shorter timeouts? Is the configuration of my router
really THAT strange and normally routers forward the DNS packets
properly? Do they ignore the DHCP-given nameservers and use the
gateway-IP as default nameserver??? I didn't reconfigure anything
strangely, the system is an almost-out-of-the-box debian!

Thanks for your help!
Reply With Quote
  #19 (permalink)  
Old 07-09-2008, 11:39 AM
Pascal Hambourg
 
Posts: n/a
Re: Slow DNS Lookup (and no IPv6-issue???)

info@cheffestl.de a écrit :
>
> Is the configuration of my router really THAT strange


It seems so.

> and normally routers forward the DNS packets properly?


Yes, as well as any UDP traffic.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:41 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Cheap Promotional Items | Payday Advance | Free Advertising | Project cars for sale | Gas Suppliers



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114