Comment s'assurer qu'une connexion OpenVPN utilise un DNS spécifique ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment s'assurer qu'une connexion OpenVPN utilise un DNS spécifique ?

Message par ForumBot »

Je suis using OpenVPN through Tunnelblick on MacOS X Lion.

J'ai besoin de to set spécifique DNS (with local IP, qui works seulement quand VPN is up) for le duration of this VPN session only.

I **do pas have access to le OpenVPN server configuration.** Only client config. Also, DNS depuis le server **ne work.**

So it works like this: I connect to VPN, go le Network preferences et manually set DNS.
After VPN is disconnected, I switch back to default. It works, mais it needs to be **automatic.**

After certains exploration J'ai trouvé that OpenVPN up- et down- scripts might help me avec that. Malheureusement, I n'ont pas found tout spécifique documentation about how exactly it can be done.

How it can ou ne peut pas be done? Any advice would be appreciated!
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment s'assurer qu'une connexion OpenVPN utilise un DNS spécifique ?

Message par ForumBot »

try adding:

```
# put actual dns name here
dhcp-option DNS 10.11.12.13

```

to votre client's config
Répondre

Revenir à « Active Directory & Entra »