I updated to v6 a few days ago, and while everything is working swimmingly I'd like to disable the pi.hole DNS record. I have my network configured so that my pihole console uses a private FQDN (ex: https://dns.[domain].[tld]), so the default record is superfluous at this point. Additionally, it seems some clever front-end admins are resolving pi.hole to detect if the system is deployed locally.
I have updated pihole.toml as follows (superfluous lines ommitted):
[dns]
piholePTR = "NONE" #Per suggestion in Reddit thread above
[webserver]
domain = [dns.[domain].[tld]] #actual domain and TLD omitted for privacy
Currently the custom domain is resolving happily, but pi.hole is still resolving successfully. Also, while I did update my piholePTR value above per the suggestion on reddit, I would like the pihole to return the value of my custom record noted above.
I found the following forum posts related to this, though they are multiple years old, and don't seem to provide a good solution in general, nevertheless for v6.
I am running my pi.hole on a Raspberry Pi 4 Model B r1.5, with the most recent Raspberry Pi OS backed on Bookwork (see below). I do have a custom internal A record reverse-proxied to my Pi-Hole using a Caddy instance running on another machine, and it resolves the pihole dashboard correctly at the moment.
I'm not sure if I understand you correctly, as you haven't supplied any custom DNS records (yet)?
To help my understanding, please provide how Pi-hole currently resolves your aspired name, preferably by means of a dig command output, and how you would like that to be answered instead.
Please note that the dns & dns-adm records are duplicative for a test.
Having my pihole return my custom domain is not critical, and I apologize for mentioning it. My main goal is disabling the https://pi.hole DNS record for the web interface. I'd like it to return NXDOMAIN as though pi.hole has no records.
Relevant dig results as-requested, run from another machine on my network.
That's much clearer, thank you (and all in one sentence).
Currently, disabling pi.hole completely to have it return NXDOMAIN isn't possible.
One user has brought up that idea some years ago for Pi-hole v5, but that discussion wasn't followed up by a feature request.
For v5, changing that name would also have meant to change its HTML code in places.
Pi-hole v6 now offers configuration of a webserver.domain which potentially could be leveraged to accomplish such a change, but currently it affects only Pi-hole's web server portion.
Apologies if the ask wasn’t concise enough, my job is collaborating with other engineers, and our company’s culture prefers detail & context over brevity. Learned habits, etc.
I’ll open a feature request shortly, and depending on your contribution model, am happy to do the engineering as well. See you on GitHub!