If FortiClient forces its DNS every time you connect, you can create a script that resets the DNS automatically after the VPN starts.
- Open the NetworkManager dispatcher directory:
- Add the following script:
- Save the file (
CTRL + X
, thenY
andEnter
). - Make it executable:
- Restart NetworkManager:
Now, every time you connect, this script will automatically override FortiClient’s DNS settings.
After making these changes, run:
and
to make sure your DNS settings are correctly applied.
Try:
or
to confirm if DNS is working.