Sorry for the delayed response. Life got in the way 😊

> -----Original Message-----
> From: Dnsmasq-discuss [mailto:dnsmasq-discuss-
> boun...@lists.thekelleys.org.uk] On Behalf Of Geert Stappers
> Sent: Wednesday, January 31, 2018 5:33 PM
> To: dnsmasq-discuss@lists.thekelleys.org.uk
> Subject: Re: [Dnsmasq-discuss] Long nslookup times
> 
> On Wed, Jan 31, 2018 at 04:44:03PM +0000, Donald Muller wrote:
> > boun...@lists.thekelleys.org.uk] On Behalf Of Geert Stappers
> > Sent: Wednesday, January 31, 2018 4:56 AM
> > > On Wed, Jan 31, 2018 at 10:22:53AM +0100, Geert Stappers wrote:
> > > > On Tue, Jan 30, 2018 at 05:08:05PM +0000, Donald Muller wrote:
> > > > >
> > > > > Using Microsoft DNS server
> > > > >
> > > > > [~] # time nslookup www.microsoft.com 192.168.22.200 Address 1:
> > > > > 192.168.22.200 djmfs1.djmuller.com
> > > >
> > > > Programm nslookup did a reverse lookup on used DNS address and got
> > > > back a FQDN
> > > >
> > > > > Address 1: 172.229.210.230
> > > > > a172-229-210-230.deploy.static.akamaitechnologies.com
> > > > >
> > > > > real    0m0.103s
> > > > >
> > > > > Using dnsmasq
> > > > >
> > > > > [~] # time nslookup www.microsoft.com 192.168.22.220 Address 1:
> > > > > 192.168.22.220 DJMFS2
> > > >
> > > > Non Fully Qualified Domain Name for the used DNS address
> > > >
> > > > > Address 1: 172.229.210.230
> > > > > a172-229-210-230.deploy.static.akamaitechnologies.com
> > > > >
> > > > > real    0m40.057s
> > > >
> > > > Wow, a full forty seconds ...
> > > >
> > > > > As you can see dnsmasq took a lot longer.
> > > >
> > > > > Both DNS servers are set up to
> > > > > forward requests to my router (192.168.22.252) which then
> > > > > forwards them on the my ISP DNS servers. The router is NOT running
> a DNS server.
> > > >
> > > > So the "forward" is about forwarding plain IP packets.
> > > > Initially I did read the "forward" as "forwarding a DNS request"
> > > >
> > > >
> > > > > Some queries run faster on the NAS. Others, like
> > > > > www.micorsoft.com run slower. Here is my dnsmasq setup.
> > > > >
> > > > > Main dnsmasq config file
>     <snip/>
> > > > > Is there a setting that needs to be changed/added/removed?
> 
> I'm not convinced that the culprit is in  dnsmasq.
> Please continue to find proof  ...
> 
> > > > > What additional information do you need?
> > > > >
> > > >
> > > > The connection between the r2012 server and the router.
> > > > The connection between the dnsmasq and the router.
> > >
> > > And
> > > the connection between the nslookup client and the r2012 server the
> > > connection between the nslookup client and the dnsmasq server
> > >
> >
> > All devices, including the router, are connected at 1GB to a switch.
> 
> The testclient what does it have in /etc/resolv.conf while testing?
> Other tools for `nslookup`, such as `dig` and `host`, what timing results have
> those?
> The QNAP NAS with dnsmasq, how much traffic must it handle?

The test client has the following in reslov.conf

[~] # cat /etc/resolv.conf
nameserver 192.168.22.220
nameserver 192.168.22.242

host shows the following:

[~] # time host www.microsoft.com 192.168.22.220
Using domain server:
Name: 192.168.22.220
Address: 192.168.22.220#53
Aliases:

www.microsoft.com is an alias for www.microsoft.com-c-3.edgekey.net.
www.microsoft.com-c-3.edgekey.net is an alias for 
www.microsoft.com-c-3.edgekey.net.globalredir.akadns.net.
www.microsoft.com-c-3.edgekey.net.globalredir.akadns.net is an alias for 
e13678.dspb.akamaiedge.net.
e13678.dspb.akamaiedge.net has address 104.88.47.193
e13678.dspb.akamaiedge.net has IPv6 address 2001:418:143c:19e::356e
e13678.dspb.akamaiedge.net has IPv6 address 2001:418:143c:1a9::356e

real    0m0.050s
user    0m0.001s
sys     0m0.001s

dig is not installed.

The QNAP NAS is not handling much traffic. If is a home file server with 
minimal traffic.

I also set up dnsmasq on a second NAS with just DNS running, no DHCP. This NAS 
is used for backups so normally has no traffic. I get the same long times

[~] # time nslookup www.microsoft.com 192.168.22.242
Server:    192.168.22.242
Address 1: 192.168.22.242 djmfs3.djmuller.com

Name:      www.microsoft.com
Address 1: 104.88.47.193 a104-88-47-193.deploy.static.akamaitechnologies.com
Address 2: 2001:418:143c:19e::356e
Address 3: 2001:418:143c:1a9::356e

real    0m40.071s
user    0m0.000s
sys     0m0.001s

What times do you get if you do a nslookup on www.microsoft.com?
> 
> 
> Groeten
> Geert Stappers
> --
> Leven en laten leven
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

Reply via email to