Closed indexofrefraction closed 1 year ago
Can't reproduce
this is on macOS and I was not 100% sure if the build is correct. i tried your test scripts... that looks ok, right?
cd dnsmasq-regex
./dnsmasq/src/dnsmasq -d -C test/whitelist_test.conf -q &
bash test/whitelist_test.sh
UDP, server
jd.com is forwared to 0.0.0.0
dnsmasq: query[A] jd.com from ::1
dnsmasq: config jd.com is 0.0.0.0
www.fb.me is forwared to 0.0.0.0
dnsmasq: query[A] www.fb.me from ::1
dnsmasq: config www.fb.me is 0.0.0.0
educause.edu is forwared to 114.114.114.114
dnsmasq: query[A] educause.edu from ::1
dnsmasq: cached educause.edu is 104.20.34.250
dnsmasq: cached educause.edu is 172.67.17.122
dnsmasq: cached educause.edu is 104.20.33.250
www.msn.com is forwared to 1.1.1.1
dnsmasq: query[A] www.msn.com from ::1
dnsmasq: cached www.msn.com is
I have no macOS and can not reproduce.
As you said, there are no-ipset
and no-nfset
in your compile time flags.
Compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n regex no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset auth no-cryptohash no-DNSSEC loop-detect no-inotify dumpfile
You can try to build original version of dnsmasq and make the flags no-ipset
and no-nfset
disappear.
Make sure your system support ipset and nftset, and edit DNSMASQ_COPTS
in Makefile of this repo to build again.
FreeBSD does not seem to support nftset. Perhaps that's why regex forwarding does not seem to work properly.
Hi, I'm following the compile instructions exactly, but on
./dnsmasq/src/dnsmasq --version
i get :Dnsmasq version 2.89-44-g9bbf098 Copyright (c) 2000-2023 Simon Kelley Compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n regex no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset auth no-cryptohash no-DNSSEC loop-detect no-inotify dumpfile
the compile options contain "regex" but not "regex(+ipset,nftset)" is this because of "no-ipset no-nftset" coming from the main repo ?