Commit f7afbc5
iservice: set adapter DNS only with search domains
With NRPT the adapter name server configuration is not needed
theoretically. However DNS config is not showing with traditional
tools like ipconfig if they are left out. More importantly if
there are no DNS servers configured for an adapter the adapter
specific search domains are not recognized by the Windows resolver.
However, adding the servers to the adapter has the side effect, that
general look-ups are now also done using this adapter, which might
come as unexpected and yield wrong results, if there is some trickery
happening with the default DNS, for example.
As a workaround, set the adapter DNS only when strictly needed.
Github: #473
Change-Id: I6debe8bbedd5a08da417bfee1243a43ef6df7980
Signed-off-by: Heiko Hund <[email protected]>
Acked-by: Selva Nair <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1429
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg34968.html
Signed-off-by: Gert Doering <[email protected]>1 parent a0813a9 commit f7afbc5
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2869 | 2869 | | |
2870 | 2870 | | |
2871 | 2871 | | |
2872 | | - | |
2873 | | - | |
2874 | | - | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
2875 | 2879 | | |
2876 | | - | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
2877 | 2885 | | |
2878 | 2886 | | |
2879 | 2887 | | |
| |||
0 commit comments