Discussion:
[Dnsmasq-discuss] Too many logs produced when using a lot of “server=/domain/nameserver” config entires
s
2016-04-12 13:58:39 UTC
Permalink
Hello,

In China some of us use dnsmasq to resolv all domestic domains from local
nameservers, but anything else from other more secure nameservers, e.g. via VPN
tunnel or dnscrypt. We have a list of 20k+ local domains, which is translated
into 20k+ lines of config file[1].

Dnsmasq works just fine in this configuration. Memory footprint and query speed
are still very good. But it produces too many logs. In fact it produce a log
entry for each of these “server=/.../.../” lines every time it starts/reloads.
The logs look like
using nameserver 223.6.6.6#53 for domain youxiwangguo.com
I have went through doc and source code, but there is no option to disable these
logs. I can filter the logs, but it is not very ideal, and I will have to do
that for both rsyslog and journald.

Can dnsmasq itself make some changes or add a config option to disable/reduce
these logs?

1. https://github.com/felixonmars/dnsmasq-china-list

See also https://github.com/felixonmars/dnsmasq-china-list/issues/124, which I
reported.

Best regards,
sopium
Simon Kelley
2016-05-03 21:37:08 UTC
Permalink
I just committed some code to limit these logs, if there are more than
30 servers, only the first 30 are logged, followed by a single line
which gives the number not logged. The 30 was a reasonable default, it's
changeable in src/config.h

Does that seem like a good solution?


Cheers,

Simon.
Post by s
Hello,
In China some of us use dnsmasq to resolv all domestic domains from local
nameservers, but anything else from other more secure nameservers, e.g. via VPN
tunnel or dnscrypt. We have a list of 20k+ local domains, which is translated
into 20k+ lines of config file[1].
Dnsmasq works just fine in this configuration. Memory footprint and query speed
are still very good. But it produces too many logs. In fact it produce a log
entry for each of these “server=/.../.../” lines every time it starts/reloads.
The logs look like
using nameserver 223.6.6.6#53 for domain youxiwangguo.com
I have went through doc and source code, but there is no option to disable these
logs. I can filter the logs, but it is not very ideal, and I will have to do
that for both rsyslog and journald.
Can dnsmasq itself make some changes or add a config option to disable/reduce
these logs?
1. https://github.com/felixonmars/dnsmasq-china-list
See also https://github.com/felixonmars/dnsmasq-china-list/issues/124, which I
reported.
Best regards,
sopium
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...