Cloudflared

提供: ArchWiki
2022年2月4日 (金) 17:59時点におけるKgx (トーク | 投稿記録)による版 (英語版から転載)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

Cloudflared may be used to run a local DNS over HTTPS server (DoH), i.e., a stub resolver.

Installation

Install the cloudflaredAUR or cloudflared-binAUR package.

Configuration

Create the following file, replacing <endpoint> with preferred endpoints:

/etc/cloudflared/config.yml
proxy-dns: true
proxy-dns-upstream:
 - <endpoint>
 - <endpoint>
 - <endpoint>
proxy-dns-port: 53
proxy-dns-address: 0.0.0.0

As per upstream documentation, here are the available endpoints:

ヒント: cURL's documentation maintains a list of alternative public endpoints.
Endpoints Description
 - https://1.0.0.1/dns-query
 - https://1.1.1.1/dns-query
 - https://2606:4700:4700::1111/dns-query
 - https://2606:4700:4700::1001/dns-query
Standard
 - https://security.cloudflare-dns.com/dns-query
Standard, but blocks malware
 - https://family.cloudflare-dns.com/dns-query
Standard, but blocks malware and porn
 - https://9.9.9.9/dns-query
Quad9

Usage

Start and enable cloudflared@cloudflared.service. Now you can use your device's IP address as a DNS server.

ヒント: Use 1.1.1.1/help to check if browser is using Cloudflare DoH.

See also