
暗号化されたDNSクエリ+ DNSキャッシュ+ドメインネームシステムセキュリティエクステンション(DNSSEC)が必要です。
このbashスクリプトを使用してDNSCryptをインストールし、dnscrypt.euサーバーを使用することを選択しました。
DNSCrypt.eu (no logs)
Holland
Server address:
176.56.237.171:443
Provider name
2.dnscrypt-cert.dnscrypt.eu
Public key
67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66
インストール(apt-get install unbound
バインド解除)し、unbound.confファイルに次のものが含まれています。
#
# See the unbound.conf(5) man page.
#
# See /usr/share/doc/unbound/examples/unbound.conf for a commented
# reference config file.
server:
# The following line will configure unbound to perform cryptographic
# DNSSEC validation using the root trust anchor.
auto-trust-anchor-file: "/var/lib/unbound/root.key"
server:
verbosity: 1
num-threads: 4
interface: 0.0.0.0
do-ip4: yes
do-udp: yes
do-tcp: yes
access-control: 192.168.0.0/24 allow
do-not-query-localhost: no
chroot: ""
logfile: "/var/log/unbound.log"
use-syslog: no
hide-identity: yes
hide-version: yes
harden-glue: yes
harden-dnssec-stripped: yes
use-caps-for-id: yes
private-domain: "localhost"
local-zone: "localhost." static
local-data: "freebox.localhost. IN A 192.168.0.254"
local-data-ptr: "192.168.0.254 freebox.localhost"
python:
remote-control:
forward-zone:
name: "."
forward-addr: 127.0.0.1@40
ご覧のとおり、DNSSECを有効にするために次の行を追加しました。
server:
# The following line will configure unbound to perform cryptographic
# DNSSEC validation using the root trust anchor.
auto-trust-anchor-file: "/var/lib/unbound/root.key"
次のように入力すると、sudo service unbound start
次のエラーが発生します。
* Restarting recursive DNS server unbound
[1382606879] unbound[8878:0] error: bind: address already in use
[1382606879] unbound[8878:0] fatal error: could not open ports
私の質問はもちろんエラーについてです!また、DNSサーバーではなく通常のラップトップでDNSSECを使用するのが便利ですか、それともDNSサーバーにのみ役立ちますか?
答え1
dnscryptプロキシはすでにポート53を使用しています。賭けることができます:)
答え2
@Jiri Xichtknihaと@Anthonに感謝します。
タイピング中
sudo lsof -nPi | grep \:53
バインディングが同じポートでもリッスンしていることがわかります。
TCP *:53 (LISTEN)
次に、次の行を追加して/etc/unbound/unbound.confを修正しました。
port:533
ps:クエリに応答するサーバーのポート番号、デフォルトは53です。
別の解決策は、Bindのポートを53から別のポートに変更することです。