Re: systemd-resolved not working in a realistic scenario

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2023. 04. 29. 12:18, Reto wrote:
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.

I already read it. and I can't find any solution to add 2 different domain with 2 or more dns servers ON THE SAME network interface.


Levente                               "Si vis pacem para bellum!"



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux