How to add `address` custom dnsmasq configuration lines to Pi-hole v6?

How are we supposed to configure local wildcard DNS entries if dnsmasqd should not be used anymore and Pihole itself doesn't support it?

That's not true.

The explanation above is simply saying your old dnsmasq config won't be loaded by default, but you can change some options to do it (I highlighted some parts):

1 Like

DL6ER gave some comprehensible reasons why it isn't loaded by default anymore and it sounds like it totally makes sense rather not to use it. The question is, what else to use that does not come with the named disadvantages.

What's the purpose of defining those entries?
Please share your dnsmasq configuration for such wildcard DNS entries.

I define a local domain for which I want the subdomains to all point to an internal Caddy reverse proxy.

address=/my.home/<ip of the caddy proxy>

For just a few lines, you can use misc.dnsmasq_lines under All settings » Miscellaneous, or via CLI, e.g.:

sudo pihole-FTL --config misc.dnsmasq_lines '["address=/my.home/192.168.1.10","address=/other.home/192.168.1.11"]'

As mentioned already, if instead you want to keep a bunch of configuration lines in your own custom file under /etc/dnsmasq.d/, you could alternatively enable misc.etc_dnsmasq_d.

All settings is available in Expert mode only.

3 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.