2019-03-06 11:45:21 +00:00
|
|
|
|
import React from 'react';
|
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
import { Trans, withNamespaces } from 'react-i18next';
|
|
|
|
|
|
|
|
|
|
const Examples = props => (
|
|
|
|
|
<div className="list leading-loose">
|
2019-04-28 08:18:56 +00:00
|
|
|
|
<p>
|
|
|
|
|
<Trans
|
|
|
|
|
components={[
|
2019-06-03 12:41:45 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://kb.adguard.com/general/dns-providers"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
key="0"
|
|
|
|
|
>
|
2019-04-28 08:18:56 +00:00
|
|
|
|
DNS providers
|
|
|
|
|
</a>,
|
|
|
|
|
]}
|
|
|
|
|
>
|
|
|
|
|
dns_providers
|
|
|
|
|
</Trans>
|
|
|
|
|
</p>
|
2019-03-06 11:45:21 +00:00
|
|
|
|
<Trans>examples_title</Trans>:
|
|
|
|
|
<ol className="leading-loose">
|
|
|
|
|
<li>
|
2019-06-03 12:41:45 +00:00
|
|
|
|
<code>1.1.1.1</code> - {props.t('example_upstream_regular')}
|
2019-03-06 11:45:21 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
<code>tls://1dot1dot1dot1.cloudflare-dns.com</code> –
|
|
|
|
|
<span>
|
|
|
|
|
<Trans
|
|
|
|
|
components={[
|
2019-06-03 12:41:45 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://en.wikipedia.org/wiki/DNS_over_TLS"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
key="0"
|
|
|
|
|
>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
DNS-over-TLS
|
|
|
|
|
</a>,
|
|
|
|
|
]}
|
|
|
|
|
>
|
|
|
|
|
example_upstream_dot
|
|
|
|
|
</Trans>
|
|
|
|
|
</span>
|
2019-03-06 11:45:21 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
<code>https://cloudflare-dns.com/dns-query</code> –
|
|
|
|
|
<span>
|
|
|
|
|
<Trans
|
|
|
|
|
components={[
|
2019-06-03 12:41:45 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://en.wikipedia.org/wiki/DNS_over_HTTPS"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
key="0"
|
|
|
|
|
>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
DNS-over-HTTPS
|
|
|
|
|
</a>,
|
|
|
|
|
]}
|
|
|
|
|
>
|
|
|
|
|
example_upstream_doh
|
|
|
|
|
</Trans>
|
|
|
|
|
</span>
|
2019-03-06 11:45:21 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
<code>tcp://1.1.1.1</code> – <Trans>example_upstream_tcp</Trans>
|
2019-03-06 11:45:21 +00:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
<code>sdns://...</code> –
|
|
|
|
|
<span>
|
|
|
|
|
<Trans
|
|
|
|
|
components={[
|
2019-06-03 12:41:45 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://dnscrypt.info/stamps/"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
key="0"
|
|
|
|
|
>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
DNS Stamps
|
|
|
|
|
</a>,
|
2019-06-03 12:41:45 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://dnscrypt.info/"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
key="1"
|
|
|
|
|
>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
DNSCrypt
|
|
|
|
|
</a>,
|
2019-06-03 12:41:45 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://en.wikipedia.org/wiki/DNS_over_HTTPS"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
key="2"
|
|
|
|
|
>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
DNS-over-HTTPS
|
|
|
|
|
</a>,
|
|
|
|
|
]}
|
|
|
|
|
>
|
|
|
|
|
example_upstream_sdns
|
|
|
|
|
</Trans>
|
|
|
|
|
</span>
|
2019-03-06 11:45:21 +00:00
|
|
|
|
</li>
|
2019-03-20 11:24:33 +00:00
|
|
|
|
<li>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
<code>[/example.local/]1.1.1.1</code> –
|
|
|
|
|
<span>
|
|
|
|
|
<Trans
|
|
|
|
|
components={[
|
2019-06-03 12:41:45 +00:00
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#upstreams-for-domains"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
key="0"
|
|
|
|
|
>
|
2019-03-20 12:23:36 +00:00
|
|
|
|
Link
|
|
|
|
|
</a>,
|
|
|
|
|
]}
|
|
|
|
|
>
|
|
|
|
|
example_upstream_reserved
|
|
|
|
|
</Trans>
|
|
|
|
|
</span>
|
2019-03-20 11:24:33 +00:00
|
|
|
|
</li>
|
2019-03-06 11:45:21 +00:00
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Examples.propTypes = {
|
|
|
|
|
t: PropTypes.func.isRequired,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default withNamespaces()(Examples);
|