Hostname / Admin interface confusion

My Pi-Hole has RasPi Hostname rpi-dnshole

When I enter http://pi.hole I am automatically forwarded to http://pi.hole/admin.
Working as intended.

When I enter http://rpi-dnshole I get a weird Blocked message. Not working as intended.

I must enter http://rpi-dnshole/admin to not get the blocked page.

Can someone please explain this behavior? Why is doing http://rpi-dnshole and http://pi.hole not working the same way leading to the admin page?

Is the http://pi.hole hostname/address somehow hardcoded into Pi-Hole? I never defined that hostname and address during setup and cannot find any options regarding it

This is intended. Only the specific pi.hole domain will automatically redirect to the admin page. For custom domain names, you will need to add /admin to the path.

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

1 Like

Maybe this is also related to the described security features.

I made some checks from phone within the same Wifi as PiHole. So I pinged server hostname rpi-dnshole with some some app.

Tho when I ping the hostname it shows pi.hole as the pinged hostname.

  • Soo, question, is this related to the same security solutions as mentioned above already - or shouldn't the ping results show the same server name as entered in the query?

  • Maybe its only the app showing stuff in a weird way?

I think the app is doing revers lookup of the server answering. You can control that with
PIHOLE_PTR. If you set it to hostname, it should respond with rpi-dnshole

1 Like

Thanks for pointing me to the proper manual pages. Do I assume all configuration in /etc/pihole/pihole-FTL.conf is optional?

Mine looks like this. Shouldn't there be all the options from [Configuration - Pi-hole documentation] in here so I can change them according to the manual?

Yes. Any default entries (other than privacy level) are not shown in this log.

Only those entries that you add that are not the default values need to be in this file.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.