Une alternative assez simple, consiste à mettre à jour /etc/resolv.conf quand le VPN fonctionne et à restaurer l'ancien fichier quand le VPN s’arrête. Si tu utilises openvpn tu peux très facilement le faire avec les commandes "up" et "down" # Shell command to run after successful TUN/TAP device open
up /etc/openvpn/up.sh
# Shell command to run after TUN/TAP device close
down /etc/openvpn/down.sh
[^] # Re: qhookjk
Posté par koopa . En réponse au message Sélection du DNS en fonction du nom à résoudre. Évalué à 1.
# Shell command to run after successful TUN/TAP device open
up /etc/openvpn/up.sh
# Shell command to run after TUN/TAP device close
down /etc/openvpn/down.sh
C'est ce qu'on utilise sur les laptops du boulot.