Re: [Dnsmasq-discuss] Feature request = block-conf

2022-02-05 Thread Ercolino de Spiacico
> Opinions, all? The scripting solution would indeed solve the original feature request in my view. But there's a new point that is now coming into scope. Just to give the magnitude here I came across lists with 1.2M domains, 40MB uncompressed pre 'address=//' formatting. Loading such a list

Re: [Dnsmasq-discuss] Allow wildcard matching for TLD given a fixed 2nd level domain

2022-02-05 Thread Ercolino de Spiacico
> Try > address=/baddomain.*/# root@router# cat /etc/dnsmasq.conf | grep test address=/test.*/# root@router# dnsmasq --test dnsmasq: syntax check OK saved and restarted dnsmasq (clearing its cache). As you can see from the 5 tests here below the syntax appears not to be operational 1)

Re: [Dnsmasq-discuss] dnsmasq v2.87 --nftset and DNS reply race condition

2022-02-05 Thread Alain Ducharme
On Fri 2022-02-04 16:53 Simon Kelley wrote: > This surprises me: I can believe it's possible that whatever happens > after the call into nft_run_cmd_from_buffer() could run concurrently, > with nft_run_cmd_from_buffer() returning immediately, but if you put a > sleep(5) into add_to_nftset()

Re: [Dnsmasq-discuss] Feature request = block-conf

2022-02-05 Thread Lonnie Abelbeck
> On Feb 5, 2022, at 5:32 AM, Simon Kelley wrote: > > Let's try thinking out of the box here. Given the motivation to save storage, > I was wondering if there could be a way to use compression, gzip etc to save > more space. > > Building a decompressor into dnsmasq seems ugly, but then I

Re: [Dnsmasq-discuss] Feature request = block-conf

2022-02-05 Thread Geert Stappers via Dnsmasq-discuss
On Sat, Feb 05, 2022 at 11:32:44AM +, Simon Kelley wrote: > On 04/02/2022 09:46, Ercolino de Spiacico wrote: > > I have a feature request. > > > > Since dnsmasq is extremely popular on embedded devices with limited > > resources (e.g. router) it would be a huge improvement to have a new > >

Re: [Dnsmasq-discuss] Feature request = block-conf

2022-02-05 Thread Simon Kelley
Let's try thinking out of the box here. Given the motivation to save storage, I was wondering if there could be a way to use compression, gzip etc to save more space. Building a decompressor into dnsmasq seems ugly, but then I came up with the option of --conf-script=/path/to/script.

Re: [Dnsmasq-discuss] How to get dnsmasq to forget a changed IP address?

2022-02-05 Thread Chris Green
On Fri, Feb 04, 2022 at 11:57:46PM +0100, Geert Stappers via Dnsmasq-discuss wrote: > On Fri, Feb 04, 2022 at 06:44:17PM +, Chris Green wrote: > > I have just changed a system on my LAN to a static IP. I have added > > its address to /etc/hosts on my LAN's DHCP/DNS server (dnsmasq) and I > >

Re: [Dnsmasq-discuss] Copying dnsmasq.leases, any issues to be aware of?

2022-02-05 Thread Chris Green
On Fri, Feb 04, 2022 at 09:28:42PM +, Simon Kelley wrote: > > > On 04/02/2022 18:16, Chris Green wrote: > > I'm looking at ways to provide backup DHCP/DNS with dnsmasq. This is > > on a small, fairly 'quiet' home LAN so there aren't dozens of clients > > connecting and disconnecting every