I am currently still using PiHole v5 and utilising the following files :
/etc/pihole/custom.list
/etc/dnsmasq.d/05-pihole-custom-cname.conf
/etc/dnsmasq.d/42-local-domain-awareness.conf
In wanting to move forward and upgrade to v6, I am in the process of provisioning a new host and have copied these files across from across but the contents don't seem to have populated in the List of local DNS records and List of local CNAME records.
Are these files now no longer needed?
Do I just need to simply copy & paste the contents into the dns.hosts, dns.cnameRecords and dns.domain fields in the DNS Server section?
Pi-hole v6 doesn't load additional dnsmasq .conf files by default.
If you want to use these files, you can enable the advanced option: misc.etc_dnsmasq_d. This option will allow FTL to load additional files from /etc/dnsmasq.d/ directory:
Thanks.
I assume then that the default behaviour is that custom dns and cname entries (entered via the gui) are written to the database, and enabling the custom dnsmasq option reads in the file contents, writing them to the database as a one-off action???
DNS and CNAME typed on the web interface are stored in pihole.toml file (not in the database) and they are loaded using the new .conf file, automatically generated by FTL.
Enabling misc.etc_dnsmasq_d allows additional configuration files to be loaded from /etc/dnsmasq.d/ directory.
If you add DNS and CNAME entries via .conf files, the entries will not show up in the web interface.
custom.list and 05-pihole-custom-cname.conf are the files that Pi-hole 5 used to store Local A/AAAA record and CNAME definitions, as editable via Pi-hole's UI.
When you upgrade to Pi-hole v6, those entries should be migrated automatically.
Your 42-local-domain-awareness.conf is a custom configuration file that needs to be included in the way that rdwebdesign has mentioned above.
Is the inclusion of a 42-local-domain-awareness.conf file doing the same as enabling the dns.expandHosts option, or, like the 05-pihole-custom-cname.conf file in addition to what is entered via the gui?