I'm really LOVING Pi-Hole 5 thus far. I used to use 'lan.list' on Pi-Hole 4.x to add DNS records for hosts on my internal network, but I see the new 'Local DNS Records' option.
I used the web interface to add a couple of hosts. That process works well but is VERY slow.
I have a couple of questions:
Is it possible to add DNS entries from the command-line?
Where are the local DNS records stored? I'd like to be able to create backups of the records in the event that something catastrophic happens to my Pi and I need to rebuild. I definitely don't want to go through the process of adding several dozen records to the configuration after a rebuild.
So as an experiment I removed all my entries from the /etc/pihole/custom.list and "Local DNS Records" page in the web portal. I rebooted the pi-hole and then manually added entries into the /etc/pihole/custom.list with following format:
ipaddress hostname
I then rebooted the pi-hole again. The entries are still in /etc/pihole/custom.list but they aren't in the Local DNS Records section nor are the hostnames being used correctly anymore as it's just pulling the "unfriendly" actual hostname from my DHCP server..
Crap. I figured it out. For some reason I was editing a custom.list file in /etc/apt/ for some reason. Once I figured that out I removed that file and edited the custom.list file in /etc/pihole/ all is working normally.
It's possible for me to link an domain to an IP. I have some services running on a specific port number. Is it possible that i can add the port number in the local dns records feature?
Wait -- I'm having a similar problem. I have a set of custom hosts defined which are visible in both the /etc/pihole/custom.list and in the Web UI but I cannot edit the list from the Web UI. I get "Error while adding this custom DNS entry". I had an old lan.list that was manually linked in from the /etc/dnsmasq.d/ directory but I fixed that (removed the link and the file). Any other ideas of what might be causing the error?