Pihole not forwarding local domain after update to V6

After upgrading to Pihole v6 queries to DNS entries to my local domain are not getting forwarded.
I have a public domain registered, let say mydomain.com, and use it on all my machines even if DNS ponints to public or private addresses.

Since last big update pihole is not forwarding all *.mydomain.com, so if they are not defined in local dns they are responded as unresolved.

This is my system info and DNS config:



I've noticed that this is in my dnsmasq.conf

# DNS domain for both the DNS and DHCP server
# This DNS domain in purely local. FTL may answer queries from
# /etc/hosts or DHCP but should never forward queries on that
# domain to any upstream servers
domain=mydomain.com
local=/mydomain.com/

Is there any way so that I can make my pihole to forward *.mydomain.com to public DNS servers?

1 Like

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

Same for me but not on docker
https://tricorder.pi-hole.net/RsEQYErH/

@iggs, your issue seems different from OP, as your debug log shows you are using a private domain (.lan) with Pi-hole.

If the solution (yet to be found) doesn't apply to you, you should consider to provide a detailed description within a separate topic.

@gmag11, some generic advice in lieu of a token:
mydomain.com is a public domain, not a local one.

The easiest solution would be to not use it as local domain, as Pi-hole isn't authoritative for it - your domain provider's authoritative DNS server is.

If those public DNS servers would indeed delegate public resolution for subdomains to your Pi-hole, then that would require a custom dnsmasq configuration beyond the scope of Pi-hole.

If you'd only require public domain resolution to be shadowed by Pi-hole for some hosts, you could consider to just create matching Local DNS records (A as well as AAAA).

no worries - found the problem. I changed quite some parameters but I belive it was dns.domain which I set for my xxxx.lan. Therefore DNS was not forwarded to my "main DNS" server.

I'm facing the same issue. Local domain is also resolved in external server to reach external hosts. Until pihole v6 it worked fine as DNS and DHCP domains could be set separatedly and hosts not in /etc/hosts or DHCP were forwarded to external solver. Now local domain remains exclusively local.

Please, How did you solved in your case? Could you give more details?

Not sure on all the details.
But for me this was solved using the default lan for dns.domain.

In pihole v5 this was tech.lan - which - to some extend - broke dns resolution with pihole v6.

Thank you for your response.

I keep tinkering, as I use a custom public domain and this didn't solve it, and I made it working by emtying dns.domain, activating dnsmasq config files and setting there the domain without setting "local". Now dhcp appends my domain to hosts and dns does forward local subdomains not found locally. Just for reference if someone suffers the same.

It would be great to have theese options in separated configurations on gui.

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