[systemd-devel] systemd-resolved not working in a realistic scenario

Reto reto at slightlybroken.com
Sat Apr 29 10:18:01 UTC 2023


On Thu, Apr 27, 2023 at 02:46:09PM +0200, Farkas Levente wrote:
> What I'd like to achieve:
> - if the vpn is not connected
>   - all dns query goes to 8.8.8.8
> - if vpn is connected:
>   - netbird.cloud goes to 100.76.1.2
>   - a.com goes through wt0 to 1.2.3.4
>   - b.com goes through wt0 to 5.6.7.8
>   - all other domain goes to 8.8.8.8
>   - and of course my search domains netbird.cloud a.com b.com

You should have a look at https://systemd.io/RESOLVED-VPNS/
Essentially, you want to set up the routing only domains
appropriately.

Cheers,
Reto


More information about the systemd-devel mailing list