Etc/dnsmasq.d files

Installed latest version

  • Core vDev (development, 76a6b420)
  • FTL vDev (development, 707280ce)
  • Web interface vDev (development, e57c0fb8
    and realized that /etc/dnsmasq.d directory is empty

My current pi-hole with v5 (latest) has these files in them
11:04:18-pi@dnspi3b:/etc/dnsmasq.d $ll --fu
total 16K
4.0K -rw-r--r-- 1 root root 30 2022-01-27 15:03:01.782698948 -0500 99-youtube.grublets.conf
4.0K -rw-r--r-- 1 root root 21 2023-02-27 19:39:18.284170201 -0500 99-edns.conf
4.0K -rw-r--r-- 1 root root 2.2K 2024-07-06 15:04:41.727683304 -0400 06-rfc6761.conf
4.0K -rw-r--r-- 1 root root 1.4K 2024-07-06 15:04:44.579676836 -0400 01-pihole.conf

youtube.grublets.conf has this entry
addn-hosts=/etc/hosts.youtube
& this hosts file has 1000’s of youtube url’s’ that helps to stop most, if not all, ads.

The question is how do I get these files onto v6? or somehow create hosts.youtube in v6 that will be used by pihole?

You can continue to use them as before by setting misc.etc_dnsmasq_d = true, e.g.,

sudo pihole-FTL --config misc.etc_dnsmasq_d true

This is disabled by default to avoid conflicts due to the many rewrites of config files Pi-hole does during the migration to v6.0. It is impossible to anticipate all the possible custom advanced user configurations correctly.

pihole.toml says:

  # Should FTL load additional dnsmasq configuration files from /etc/dnsmasq.d/?
  etc_dnsmasq_d = false
1 Like

Appreciate your quick response @DL6ER. I understand that it’s impossible to anticipate every configuration out there. Thanks for highlighting this option.

Will copy all the files from v5 to v6 and make the option change to ‘true’

Greatly appreciated.