我希望有一个加密的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服务器有用?
发布于 2013-10-24 11:23:12
谢谢@Jiri Xichtkniha和@Anthon
打字时
sudo lsof -nPi | grep \:53我可以看到bind也在监听同一个端口:
TCP *:53 (LISTEN)然后,通过添加以下行,对/etc/unbound/un界. line进行了修改:
port:533ps :服务器响应查询的端口号,默认为53。
另一个解决方案是将Bind端口从53更改为另一端口。
发布于 2013-10-24 10:00:59
您的dnscrypt代理已经使用了端口53。我打赌:)
https://unix.stackexchange.com/questions/97391
复制相似问题