For above solution, can you change the last command into below:
sudo chown pihole:pihole /var/lib/misc/dnsmasq.leases
That way you prevent people stumbling on this solution that do have the misc
folder populated, mistakenly run the chown
and changing ownership recursively, the -R
argument, for all files and folders contained in the misc
folder.