Changing Conditional Forwarding in config file

Hello.
My pihole settings are a bit special, so it refuses to load the dns server in settings/dns.

I want to try out the Conditional Forwarding function, but because the dns server doesn't load and all boxes are empty I can't save it.

Could somebody post the lines that I need for conditional forwarding and what config file (I suspect dnsmasq.d/01-pihole) to put it in?
I found this, but I'm not sure what exactly I have to put in the config.

Thanks.

create something like /etc/dnsmasq.d/02-custom.conf
put there (adjusted to your needs)

server=/local.lan/192.168.1.1
server=/1.168.192.in-addr.arpa/192.168.1.1
server=/co.uk/8.8.8.8

etc.

1 Like

Thanks, that worked.

Additionally I figured out that I could've just put the locally running dns in the custom dns field. Now I can use the dns settings again lol

The tutorial here puts the dns server in the dnsmasq config, but not in setupVars, therefor not making it appear in the settings. I'll try to get them to change it.
https://scotthelme.co.uk/securing-dns-across-all-of-my-devices-with-pihole-dns-over-https-1-1-1-1/

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