Note: I read two other questions (here and here) that address the same problem but none of the solutions is applicable to my case.
I run Pi-hole in a docker container as my DNS server - for the server it is running on (Ubuntu 18.04), and the rest of my home network. It works fine, everything resolves as expected.
Except in one specific case: when Pi-hile itself is starting. It wants to check something on the Internet and fails because the DNS resolution obviously fails.
This is not the end of the world but this triggered my question: can I set up systemd-resolved
so that it chooses a DNS server based on the requested domain?
The questions in my introductory note mention the ability to do a split DNS but my understanding is that the DNS can only be set on a per-NIC basis. In other words, for one interface there can be only one DNS (or several backup ones, what I mean is that there is no possibility of dynamically choosing the one to use).
Is this understanding correct?
0 Answers