Pihole Blocking Local DNS Entry

I have a local DNS CNAME entry that's being blocked.

Access to the following website has been denied. This is primarily due to being flagged as: Not found on any Blacklist.

Pihole logs show it as being allowed, though. So I'm at a complete loss. This is a strange issue.

My setup is very basic.

version: '3.9'
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
restart: unless-stopped
volumes:
- ./etc-pihole/:/etc/pihole:z
- ./etc-dnsmasq.d/:/etc/dnsmasq.d:z
ports:
- 192.168.20.67:53:53/udp
- 192.168.20.67:80:80/tcp
environment:
TZ: 'America/New_York'
WEBPASSWORD: 'password'
ServerIP: '192.168.20.67'
VIRTUAL_HOST: 'pihole.mydomain.com'

This appears to be the lighttpd 404 message. Are you using your local domain or CNAME to access the Pi-hole web admin GUI?

I have an A record for Pihole and a CNAME record for another docker on :8080 pointing to pihole.mydomain.com. I was definitely able to access the other domain at one point. Not sure when it stopped working.

Been having issues with Traefik and some other dockers and noticed this issue while trying to access traefik.mydomain.com.

Only http://pi.hole will automatically redirect to the admin page. If you use anything other than pi.hole then you'll need to go directly to http://<custom>/admin/.

This is a security feature to prevent someone external to your network being able to access the admin page.

So I should remove the A record for pihole and change the CNAME to an A?

Include /admin at the end of the URL.

I have no issue accessing pihole.mydomain.com, though... The A record for the pihole is working.

You still need to add /admin at the end of the URL to access the web admin GUI, for the reason explained above.