[Dnsmasq-discuss] Feature request = block-conf

Lonnie Abelbeck lists at lonnie.abelbeck.com
Sat Feb 5 14:34:27 UTC 2022


> On Feb 5, 2022, at 5:32 AM, Simon Kelley <simon at thekelleys.org.uk> 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 came up with the option of --conf-script=/path/to/script.

The 'zcat' utility is ubiquitous, no command-line options required ... could be called by dnsmasq directly with a "block-conf" file suffix of .gz, .bz2 or .xz .  Also 'zcat' returns non-zero for "no gzip/bzip2/xz magic"

> Opinions, all?

Consider processing a "block-conf" file (no text other than one domain/line) and with the proper file suffix pre-processed using 'zcat'.

Lonnie




More information about the Dnsmasq-discuss mailing list