Skip to content

Commit 80fbc13

Browse files
committed
refactor(UI dns settings): update custom DNS information and improve UI descriptions
1 parent ebd1e0c commit 80fbc13

File tree

1 file changed

+45
-44
lines changed

1 file changed

+45
-44
lines changed

ui/src/components/settings/settings-dns.vue

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,7 @@
22
<div style="min-height: 100%; display: flex; flex-direction: column;">
33
<div class="settingsTitle" tabindex="0">DNS SETTINGS</div>
44

5-
<div class="param" tabindex="0" style="margin-bottom: 4px;">
6-
<input type="checkbox" id="dnsIsCustom" v-model="_dnsIsCustom" @input="isDnsValueChanged = true"/>
7-
<label class="defColor" for="dnsIsCustom"
8-
>Use custom DNS server when connected to IVPN</label
9-
>
10-
<button
11-
class="noBordersBtn flexRow"
12-
title="Help"
13-
v-on:click="$refs.helpCustomDns.showModal()"
14-
>
15-
<img src="@/assets/question.svg" />
16-
</button>
17-
<ComponentDialog ref="helpCustomDns" header="Info">
18-
<div>
19-
<p>
20-
You can specify one or more custom DNS servers to be used when connected to IVPN.<br/>
21-
When multiple DNS servers are specified, there is no guarantee that they will be used in the order listed.
22-
</p>
23-
<p>
24-
<strong>DNS over HTTPS (DoH)</strong> can be enabled for each DNS server individually.
25-
DoH is a protocol that performs Domain Name System (DNS) resolution via HTTPS,
26-
designed to increase user privacy and security by preventing eavesdropping and manipulation of DNS data.
27-
</p>
28-
<p>
29-
<strong>Important:</strong> When enabling DoH for a DNS server, ensure that:
30-
</p>
31-
<ul>
32-
<li>The server supports DNS over HTTPS</li>
33-
<li>You provide a valid DoH template URI specific to your chosen DNS provider (check your provider's documentation for the correct endpoint)</li>
34-
</ul>
35-
36-
<p v-if="isShowDnsproxyDescription" class="fwDescription">
37-
<strong>Implementation:</strong> DNS over HTTPS (DoH) is implemented using dnscrypt-proxy from
38-
the DNSCrypt project. Your DNS settings will be configured to
39-
send requests to dnscrypt-proxy listening on localhost (127.0.0.x).
40-
</p>
41-
</div>
42-
</ComponentDialog>
43-
</div>
44-
45-
<div v-if="linuxIsShowResolvConfMgmtOption">
5+
<div v-if="linuxIsShowResolvConfMgmtOption" style="margin-top: 0px;">
466
<div class="param">
477
<input
488
type="checkbox"
@@ -75,6 +35,46 @@
7535
</div>
7636
</div>
7737

38+
<div class="param" tabindex="0" style="margin-bottom: 4px;">
39+
<input type="checkbox" id="dnsIsCustom" v-model="_dnsIsCustom" @input="isDnsValueChanged = true"/>
40+
<label class="defColor" for="dnsIsCustom"
41+
>Use custom DNS server when connected to IVPN</label
42+
>
43+
<button
44+
class="noBordersBtn flexRow"
45+
title="Help"
46+
v-on:click="$refs.helpCustomDns.showModal()"
47+
>
48+
<img src="@/assets/question.svg" />
49+
</button>
50+
<ComponentDialog ref="helpCustomDns" header="Custom DNS information">
51+
<div>
52+
<p>
53+
You can specify one or more custom DNS servers to be used when connected to IVPN.
54+
When multiple DNS servers are specified, the servers will be registered in the order you defined,
55+
but your operating system may select a resolver based on its own logic.
56+
</p>
57+
<p>
58+
<strong>DNS over HTTPS (DoH)</strong> can be enabled for each DNS server individually.
59+
DoH is a protocol that performs Domain Name System (DNS) resolution via HTTPS for better privacy and security.
60+
</p>
61+
<p>
62+
When enabling DoH for a DNS server, ensure that:
63+
</p>
64+
<ul>
65+
<li>The server supports DNS over HTTPS</li>
66+
<li>You provide a valid DoH template URI specific to your chosen DNS provider</li>
67+
<li>For DNS resolvers with multiple IP addresses used, they are added as separate entries with the same URI </li>
68+
</ul>
69+
70+
<p v-if="isShowDnsproxyDescription" class="fwDescription">
71+
<strong>Implementation:</strong> DNS over HTTPS (DoH) is implemented using dnscrypt-proxy from the DNSCrypt project.
72+
Your DNS settings will be configured to send requests to dnscrypt-proxy listening on localhost (127.0.0.x).
73+
</p>
74+
</div>
75+
</ComponentDialog>
76+
</div>
77+
7878
<div v-bind:class="{ disabled: dnsIsCustom === false }" style="overflow-y: auto; flex: 1; display: flex; flex-direction: column;">
7979

8080
<div style="padding-left: 20px;">
@@ -182,14 +182,15 @@
182182
>
183183
+ Add custom DNS server
184184
</button>
185-
</div>
186-
</div>
187185

188-
<div class="paramProps" style="margin-top: auto; margin-bottom: 20px;">
189186
<div class="fwDescription" tabindex="0">
187+
Your OS may not follow the configured DNS order.<br/>
190188
AntiTracker will override the custom DNS when enabled.
191189
</div>
190+
191+
</div>
192192
</div>
193+
193194
</div>
194195
</template>
195196

0 commit comments

Comments
 (0)