- client: Improve DNS Rewrites

Close #1764

Squashed commit of the following:

commit 76af537597b2f3c0860716a45e4e23662cde22c8
Author: ArtemBaskal <a.baskal@adguard.com>
Date:   Mon Jul 6 10:59:44 2020 +0300

    - client: Improve DNS Rewrites
This commit is contained in:
Artem Baskal 2020-07-06 11:23:23 +03:00
parent 2f76f5d048
commit 73c5d9eaef
2 changed files with 12 additions and 1 deletions

View File

@ -481,6 +481,10 @@
"domain_desc": "Enter the domain name or wildcard you want to be rewritten.", "domain_desc": "Enter the domain name or wildcard you want to be rewritten.",
"example_rewrite_domain": "rewrite responses for this domain name only.", "example_rewrite_domain": "rewrite responses for this domain name only.",
"example_rewrite_wildcard": "rewrite responses for all <0>example.org</0> subdomains.", "example_rewrite_wildcard": "rewrite responses for all <0>example.org</0> subdomains.",
"rewrite_ip_address": "IP address: use this IP in an A or AAAA response",
"rewrite_domain_name": "Domain name: add a CNAME record",
"rewrite_A": "<0>A</0>: special value, keep <0>A</0> records from the upstream",
"rewrite_AAAA": "<0>AAAA</0>: special value, keep <0>AAAA</0> records from the upstream",
"disable_ipv6": "Disable IPv6", "disable_ipv6": "Disable IPv6",
"disable_ipv6_desc": "If this feature is enabled, all DNS queries for IPv6 addresses (type AAAA) will be dropped.", "disable_ipv6_desc": "If this feature is enabled, all DNS queries for IPv6 addresses (type AAAA) will be dropped.",
"fastest_addr": "Fastest IP address", "fastest_addr": "Fastest IP address",

View File

@ -63,7 +63,14 @@ const Form = (props) => {
/> />
</div> </div>
</div> </div>
<ul>{['rewrite_ip_address',
'rewrite_domain_name',
'rewrite_A',
'rewrite_AAAA']
.map((str) => <li key={str}>
<Trans components={[<code key="0">text</code>]}>{str}</Trans>
</li>)
}</ul>
<div className="modal-footer"> <div className="modal-footer">
<div className="btn-list"> <div className="btn-list">
<button <button