Support Split DNS on Linux using systemd-resolved#163
Conversation
|
I've been using the branch Linux_split_DNS_PR118_rework through this AUR package on Arch Linux for a while and it works great. However, it seems (as far as I can tell) that it has been abandoned without hope of being merged. I'm not too familiar with the codebase, so I can't provide a very thorough review of this PR, but it seems to implement the same functionality a bit more robustly, and on an up-to-date master. Looking forward for this to be merged. |
|
Thanks for the PR! Just sharing some thoughts:
|
|
Hello! Thank you for this review! I'll modify this as soon as I can. (I hope I'll be able to add a commit to this PR, this is like my second PR ever on any project XD) |
|
Ok I added the following :
For the rest, I think people with particular configuration know what they are doing, and I don't want the script to just do nothing if something is missing. I feel checking that |
|
Works as expected for me running systemd 260.2 with systemd-resolved and systemd-networkd on kernel 7.0.10. |
Hi!
This PR aims to add split DNS support
--domains-vpn-dnson Linux usingsystemd-resolved/resolvectl. I mimicked the way it is made on Mac by extending the SplitDnsProvider class. The program check ifsystemd-resolvedis used and then add the nameservers and domain usingresolvectl.I needed the tun name, so I also edited the
configure_domain_vpn_dnsdefinition. This fixes #157 and follows the recommendations in #158.Tested on Debian 13