I use Fedora on my laptop. Fedora uses NetworkManager for managing internet connections wires and WiFi and for dns queries it uses systemd-resolved
. I also have PiHole as my DNS server. I’ve been having a few problems with local dns that I just found out that they’re are caused by systemd-resolved
and not from my previous Access Point as I thought because this week I swiched to UniFi AP.
I have a Nextcloud server with Let’s Encrypt cert which is why I needed a real domain. So I chose cloudns.net because it’s free and does the job. Now my problem is that my Nextcloud address is nextcloud.mydomain.dns-cloud.net
which I have set DNS record in PiHole which points to my local IP because PfSense doesn’t allow “DNS rebind” (domain looping back to your local network). The problem is that systemd-resolved
strips the nextcloud
subdomain and queries only mydomain.dns-cloud.net
which I have not set a DNS record for in PiHole and it goes to PfSense’s warning page. How do I get systemd-resolved
to query the full domain and not strip part of it?