For anybody else that has the problem as me, I was able to solve it by creating a file, dnsmasq.d/10-custom.conf, that contained
addn-hosts=/etc/pihole/extrahosts.list
then I created the extrahosts.list file in the pihole directory with the hosts entries I wanted for my local network.