Reslove duckdns url from local network, using pihole

Hello there,

I used to have pihole installed on RPI 3 and accessing it remotely using duckdns, and accessing some services inside the local network using the duckdns url by resolving it to a local ip in the dnsmasq file for the pihole “01-pihole.conf”, but now after shifting to homeassistant and having pihole run as an add-on, i cant have custom dnsmasq entries, can anyone help me with this ?

Thanks

You can do it from the addon config itself. Just add the URL’s and IP’s to the hosts section.

“hosts”: [
{
“name”: “whatever.duckdns.org”,
“ip”: “xxx.xxx.xxx.xxx”
}
],