[Dnsmasq-discuss] support binary format of addn-hosts?

2020-08-26 Thread Gordon Shawn
there are some real large hosts files to filter ads sites, which can be added to dnsmasq via addn-hosts. is it possible for addn-hosts supporting binary format of these hosts files, basically making them a binary tree of some sort, to minimize its memory and disk usage, I can see those additional

[Dnsmasq-discuss] cnames-file flag?

2021-02-14 Thread Gordon Shawn
for a large size cname list currently it has to be included in dnsmasq.conf or conf-dir, which does not work with SIGHUP like what servers-file or /etc/hosts do, restart must be used for cname list updates, and it's very slow comparing to SIGHUP can we have a flag such as 'cnames-file', the way li

Re: [Dnsmasq-discuss] Partial denial of service with dnsmasq on resource constrained systems

2021-04-05 Thread Gordon Shawn
> > Hey Simon, > > On Thu, 2021-04-01 at 23:55 +0100, Simon Kelley wrote: > > I could do with a handle on exactly how people are configuring dnsmasq > > to do ad blocking. It's not something I have much experience of. > > The situation for Pi-hole (a popular ad blocker based on dnsmasq) is the > fo

[Dnsmasq-discuss] failed to read symlink-files added by `list addnhosts '/etc/safe-search/enabled'`

2022-11-25 Thread Gordon Shawn
On the newest openwrt I installed 'safe-search' which has a few files under /etc/safe-search/available/ and they're symlinked to /etc/safe-search/enable/ by choice. dnsmasq reports it failed to load those symlinks under enable/ if I remove the symlinks, and copy the real files over from available

Re: [Dnsmasq-discuss] failed to read symlink-files added by `list addnhosts '/etc/safe-search/enabled'`

2022-11-26 Thread Gordon Shawn
a symlink. I'd suspect ownership or permissions. The dnsmasq process > in OpenWrt is run as the 'dnsmasq' user, so maybe 'chown dnsmasq:dnsmasq > /etc/safe-search/enabled/*' or some variant would resolve your issue. > > On Fri, Nov 25, 2022 at 7:05 PM Gordon Shawn

[Dnsmasq-discuss] listening on multiple ports at the same time

2022-12-06 Thread Gordon Shawn
can dnsmasq listen on different ports(e.g. 53, 5353,5354,5355) in the same time with a single process running? each port can have its own configuration. so far I invoke multiple dnsmasq processes to do that. if they can share with one process I can save some memory. Thanks Gordon _

[Dnsmasq-discuss] maximum hosts or dnsmasq.conf size

2019-07-14 Thread Gordon Shawn
what's the size limitation of all the /etc/hosts and dnsmaq.conf entries(address/cname mapping etc) ? I loaded 50K hosts(ads) and so far dnsmasq is running fine. Thanks, ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lis

[Dnsmasq-discuss] is dnsmasq shared by all ports

2019-08-24 Thread Gordon Shawn
I'm running two dnsmasqs daemons one on port 53 another one on port 5333, both set cache-size=8192, are these two dnsmasq processes sharing the same cache or they're totally independent as far as cache goes? each dnsmasq also calls different host files, i.e. /etc/hosts.1(for port 53) and /etc/host

[Dnsmasq-discuss] duplicate CNAME at line 31 of /etc/dnsmasq.conf

2019-09-08 Thread Gordon Shawn
If I have two lines: cname=www.mysite.com,whatever.com cname=mysite.com,another.com dnsmasq will refuse to run and complains "duplicate CNAME" so it assumes www.mysite.com is the same as mysite.com? but I actually can set www-subdomain to different sub-domains, isn't it? plus, if dnsmasq insist

Re: [Dnsmasq-discuss] duplicate CNAME at line 31 of /etc/dnsmasq.conf

2019-09-08 Thread Gordon Shawn
prefer it pick up one and issue a warning, instead of shutting down itself though. On Sun, Sep 8, 2019 at 5:17 PM Gordon Shawn wrote: > If I have two lines: > > cname=www.mysite.com,whatever.com > cname=mysite.com,another.com > > dnsmasq will refuse to run and complains "dup