-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No DNS Suffix with DCO if connection initiated by OpenVPNService #306
Comments
Thanks for the report, this is indeed a missing feature. We set DNS domain suffix either via interactive service (which is used when connections are started by GUI) or by sending DHCP options to the driver (which is used when interactive service is not available, like in the case when connection is started by OpenVPNService). Since DCO driver doesn't support DHCP, this feature is not implemented in this particular case. I'll try to get it into 2.6.3. |
We set DNS domain either via interactve service or DHCP. When interactive service is not used, for example, when profiles are started by OpenVPNService, this option is not working for DCO and wintun. This implements setting DNS domain via WMIC command, similar to implementation in interactive service. This is done when: - interactive service is not used - ip_win32_type is either METSH or IPAPI, which is the case for DCO and wintun. Fixes OpenVPN#306 Change-Id: I9ab51bf1c0774564204c75ecce9ebfb818db2f5b
We set DNS domain either via interactve service or DHCP. When interactive service is not used, for example, when profiles are started by OpenVPNService, this option is not working for DCO and wintun. This implements setting DNS domain via WMIC command, similar to implementation in interactive service. This is done when: - interactive service is not used - ip-win32 is either METSH or IPAPI, which is the case for DCO and wintun. Fixes OpenVPN#306 Change-Id: Ic72a4ecd0414c0d7bf013415f52640fd122cb739 Signed-off-by: Lev Stipakov <[email protected]>
We set DNS domain either via interactve service or DHCP. When interactive service is not used, for example, when profiles are started by OpenVPNService, this option is not working for DCO and wintun. This implements setting DNS domain via WMIC command, similar to implementation in interactive service. This is done when: - interactive service is not used - DHCP is not used (ip-win32 is either NETSH or IPAPI, or IPv4 address is not pushed) Github: fixes #306 Change-Id: Ic72a4ecd0414c0d7bf013415f52640fd122cb739 Signed-off-by: Lev Stipakov <[email protected]> Acked-by: Selva Nair <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg26582.html Signed-off-by: Gert Doering <[email protected]> (cherry picked from commit 6cf7ce4)
We set DNS domain either via interactve service or DHCP. When interactive service is not used, for example, when profiles are started by OpenVPNService, this option is not working for DCO and wintun. This implements setting DNS domain via WMIC command, similar to implementation in interactive service. This is done when: - interactive service is not used - DHCP is not used (ip-win32 is either NETSH or IPAPI, or IPv4 address is not pushed) Github: fixes #306 Change-Id: Ic72a4ecd0414c0d7bf013415f52640fd122cb739 Signed-off-by: Lev Stipakov <[email protected]> Acked-by: Selva Nair <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg26582.html Signed-off-by: Gert Doering <[email protected]>
@lstipakov do I understand correctly that this feature is also missing in OpenVPN3 (while using interactive service)? |
@d12fk Do your DNS improvements cover those options? |
Just to confirm: I see suffix with Wintun, but not with DCO (in both cases it's OpenVPN3 v3.8.4 + default Windows |
Tested OpenVPN-2.6.2-I001-amd64 on two clean Windows 10 64bit virtual machines: 21H2 and 22H2.
If connection initiated by OpenVPNService (local system account) then options
dhcp-option DOMAIN
anddns search-domains
have no impact (DNS Suffix empty):Log:
Config:
If same config moved from config-auto to config folder and initiated via OpenVPN GUI then all works fine:
Also all works fine if using TAP adapter (no matter connection started by GUI or OpenVPNService). Parameters don't work only with DCO adapter and if connection started by OpenVPNService.
The text was updated successfully, but these errors were encountered: