[Dnsmasq-discuss] Need help on configuring dnsmasq

Gary R. Schmidt grschmidt at acm.org
Mon May 8 13:54:16 UTC 2023


On 08/05/2023 23:00, public1020 via Dnsmasq-discuss wrote:
> Thanks, dnsmasq does not support this feature. I will match all
> subdomains regardless.
> 
> Case closed :-)
> 
The man page says that it does what you've described:

-A, --address=/<domain>[/<domain>...]/[<ipaddr>]
...
       /etc/hosts and DHCP leases override this for individual names. A
       common use of this is to  redirect  the  entire  doubleclick.net
       domain  to  some  friendly local web server to avoid banner ads.
       The domain specification works in the same way as for  --server,
...

A quick gander over the source code implies that changing this would not 
be trivial.  :-)

	Cheers,
		Gary	B-)



More information about the Dnsmasq-discuss mailing list