[Dnsmasq-discuss] [PATCH] free used pointers during loading

2015-02-15 Thread Chen Wei
Valgrind reports three leaks. Those unfreed pointers are only used during loading. --- src/dnsmasq.c |2 ++ src/option.c | 11 +-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/dnsmasq.c b/src/dnsmasq.c index e903a24..e6dabbf 100644 --- a/src/dnsmasq.c +++

[Dnsmasq-discuss] Precompiled OpenWrt package

2015-02-20 Thread Chen Wei
On Sun, Feb 08, 2015 at 06:11:19PM +0800, weichen...@icloud.com wrote: dnsmasq with thousands of --server and --ipset rules This patch makes dnsmasq handle it with ease. Precompiled package for OpenWrt 12.09 and 14.07, ar71xx only. https://github.com/infinet/dnsmasq -- Chen Wei

[Dnsmasq-discuss] [PATCH V2] check bogus-nxdomain even when ip is from --address

2015-03-16 Thread Chen Wei
On Sun, Mar 15, 2015 at 09:11:58PM +, Simon Kelley wrote: On 12/03/15 08:29, Chen Wei wrote: This patch is mainly for blocking malware domains. Why use a fake address. It seems more sensible to have some syntax we could re-use that syntax so that address=/malware.com/# means return

[Dnsmasq-discuss] Feature suggest: combine --bogus-nxdomain and --address

2015-03-09 Thread Chen Wei
network. The current implementation skips --bogus-nxdomain if the IP is from --address. This feature will only add few lines of code. What are the cons to combine --bogus-nxdomain and --address? -- Chen Wei ___ Dnsmasq-discuss mailing list Dnsmasq

Re: [Dnsmasq-discuss] Dnsmasq on high load

2015-03-10 Thread Chen Wei
dnsmasq still small enough for embedded devices? -- Chen Wei ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

[Dnsmasq-discuss] [PATCH] check bogus-nxdomain even when ip is from --address

2015-03-12 Thread Chen Wei
exist on the LAN. Then the query for *.malware.com will return 0 answer, together with the query status set to NXDOMAIN. - -- Chen Wei - --- src/rfc1035.c | 30 ++ 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/src/rfc1035.c b/src/rfc1035.c index

Re: [Dnsmasq-discuss] Feature suggest: combine --bogus-nxdomain

2015-03-10 Thread Chen Wei
individual domains. so the return status of dig badass.com will be NXDOMAIN? -- Chen Wei ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

[Dnsmasq-discuss] [PATCH v2] Optimize ipset/server/local/address/rebind-domain-ok performance

2015-02-25 Thread Chen Wei
us | ftp hash table for [com, org, ...] table for [yahoo, google, twitter, ...](com), table for [debian, freebsd, ...](org) ... table for [www, mail] table for [cn, jp, uk, us, ...] ... Cheers, Chen Wei - --- Makefile |4 +- src

Re: [Dnsmasq-discuss] Huge hosts file and CPU usage

2016-05-04 Thread Chen Wei
e there any tuning (compiler options, code changes) what would reduce the > CPU usage? > I also tried using addn-hosts format but CPU usage was the same. -- Chen Wei ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

[Dnsmasq-discuss] Add IPs to BSD pf table from dnsmasq?

2017-12-17 Thread Chen Wei
Ipset in dnsmasq is a very useful feature. The pf table in BSD family is similar to ipset in it can hold large amount of IP addresses and lookups is very fast. Is it possible to add the results of DNS lookup to pf table from dnsmasq? -- Chen Wei

Re: [Dnsmasq-discuss] Add IPs to BSD pf table from dnsmasq?

2018-01-01 Thread Chen Wei
; On Tue, Dec 19, 2017 at 1:38 AM, Chen Wei <weichen...@zoho.com> wrote: > > > On Mon, Dec 18, 2017 at 07:21:37PM +0000, Simon Kelley wrote: > > > On 17/12/17 08:02, Chen Wei wrote: > > > > is very fast. Is it possible to add the results of DNS lookup to pf &