[Dnsmasq-discuss] dnsmasq forwarding all queries to name server

Michał Lipka michal at lipka.email
Wed Jul 1 10:08:07 BST 2015


> On 1 Jul 2015 14:21, "Michał Lipka" <michal at lipka.email> wrote:
>
>>
>>
>> 2015-07-01 9:19 GMT+02:00 Prashanth P.Nair <prashanthppp at gmail.com
>> <javascript:_e(%7B%7D,'cvml','prashanthppp at gmail.com');>>:
>>
>>>
>>> Hi DNSMASQ experts.
>>>
>>> Am new to DNSMasq.I have configured DNSmasq on a monitoring machine
>>> ,which is running fine.
>>>
>>> But in the logs i observed  once  query is happened ,it tells that its
>>> stored in cache, but after few minutes again query goes to namserver
>>> instead of local server.
>>>
>>>
>>>
>>> here is the logs
>>>
>>> Jul  1 09:55:48 dnsmasq[45007]: forwardedxx60 <http://xx60.xx.net/>
>>> .xx.net <http://xx60.xx.net/> to x.x.0.1
>>> Jul  1 09:55:48 dnsmasq[45007]: replyxx60.xx.net is xx.xx.215.133
>>>
>>>
>>>
>>> Jul  1 09:55:48 dnsmasq[45007]: query[A]xx60.xx.net from 127.0.0.1
>>> Jul  1 09:55:48 dnsmasq[45007]: cachedxx60.xx.net is xx.xx.215.133
>>> Jul  1 09:55:48 dnsmasq[45007]: query[AAAA]xx60.xx.net from 127.0.0.1
>>>
>>>
>>>
>>> Jul  1 09:55:48 dnsmasq[45007]: forwardedxx60.xx.net to x.x.0.1
>>> Jul  1 09:55:48 dnsmasq[45007]: replyxx60.xx.net is NODATA-IPv6
>>>
>>> Here is the dnsMasq config :
>>>
>>> all-servers
>>> cache-size=5000
>>> dns-forward-max=5000
>>> listen-address=127.0.0.1
>>> log-async
>>> log-facility=/var/log/dnsmasq.log
>>> log-queries
>>> strict-order
>>>
>>>
>>> resolve.conf
>>>
>>> nameserver 127.0.0.1
>>> nameserver x.x.0.1
>>> nameserver x.x.0.2
>>> nameserver x.x.0.3
>>>
>> I am not an expert but a quick guess: what is the TTL of those records?
>> Maybe 1 minute?
>> another guess: how many queries are caching? maybe limit 5000 isn't
>> enough and records get rotated
>>
>
On 1 July 2015 Prashanth P.Nair <prashanthppp at gmail.com> wrote:

> Ok.ttls is 3600 sec.
>
> Yes it's rotating .In my case its monitoring server ,the number of hosts
> monitored is 8000 is I just want keep the cache and not to rotate .so it
> good to knwo where cache files stored
>
> Pleaśe do not top-post.
You have cache-size set to 5000 so it won't store 8000 hostnames and some
will be rotated.
Read the friendly manual and play a little with options to increase cache
size and ttl.

Michal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150701/13c09101/attachment-0001.html>


More information about the Dnsmasq-discuss mailing list