Change Host name from pi.hole to local domain

Hey guys,

Ive tried setting a domain name in the local dns section. But I get;

ERR_CONNECTION_REFUSED

I cant seem to actually find a solution to this, not anything that's clear anyway?

Can you give more details please, such as what you are trying to do and where the error appears? And also please create a pihole debug log from the Pihole's Tools --> Generate debug log and tick the box for Upload debug log and provide Debug Token. Add that debug token to your reply and the devs can look at how you're set up and help advise

1 Like

If you want the pihole web ui as well as its published 'servername' when using pihole for DNS queries to reflect it's actual hostname and domain (f.e. host.domain.tld instead of pi.hole), you need to edit 2 files:

In /etc/pihole/pihole-FTL.conf add:

PIHOLE_PTR=HOSTNAMEFQDN

In any conf file stored at /etc/dnsmasq.d, f.e. mydomain.conf, add:

domain=domain.tld

'domain.tld' should reflect your domain, of course...
Then sudo pihole -restartdns and pi.hole is gone.

3 Likes

Thank you! Exactly what I needed :slight_smile:

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