Custom DNS override config file in /etc/dnsmasq does not appear to be read

Pi-hole v6 doesn't read /etc/dnsmasq.d/ by default, see Custom dnsmasq configs not loading.

Either enable misc.etc_dnsmasq_d, or instead -for just one or two lines- add them directly to misc.dnsmasq_lines, as as accessible via Settings | All settings » Miscellaneous.
All settings is available in Expert mode only.