Embark on a cosmic journey to master the art of split DNS, where the power to query different DNS servers for different domains awaits. Join us as we explore the intricacies of enabling domain-specific DNS resolution on major operating systems: Windows, Mac, and Linux.

In the realm of Windows, execute the following command to add a DNS Client NRPT rule:

Add-DnsClientNrptRule -Namespace '<domain>' -NameServers '<dns_ip>'

On the stellar world of Mac, the path to enlightenment lies in creating a resolver file /etc/resolver/<domain> with the following content:

nameserver <dns_ip>
port <dns_port>

Journeying through the cosmos of Linux, with the support of the mighty systemd, we unveil the secrets of creating a dummy network device /etc/systemd/network/dummy0.netdev:

[NetDev]
Name=dummy0
Kind=dummy

and the celestial network configuration file /etc/systemd/network/dummy0.network:

[Match]
Name=dummy0
[Network]
Address=<interface_ip>/32
Domains= ~<domain>.
DNS=<dns_ip>

For systems with systemd version greater than 245, the cosmos opens further possibilities, allowing you to specify a DNS port:

DNS=<dns_ip>:<dns_port>

Join us on this intergalactic expedition as we unravel the secrets of split DNS configuration across diverse operating systems. May your DNS queries soar through the galaxies, guided by the wisdom of split DNS!

May the cosmic forces of DNS resolution be with you as you navigate the realms of Windows, Mac, and Linux, enabling domain-specific DNS resolution and unlocking a universe of possibilities!