我是新使用的未绑定的。
我有一个网络192.168.50.1到192.168.50.240。我希望对非缓存数据使用DoH。
我的文件:
# Unbound configuration file for Debian.
#
# See the unbound.conf(5) man page.
#
# See /usr/share/doc/unbound/examples/unbound.conf for a commented
# reference config file.
#
# The following line includes additional configuration files from the
# /etc/unbound/unbound.conf.d directory.
include: "/etc/unbound/unbound.conf.d/*.conf"
server:
forward-zone:
name: "."
forward-addr: https://cloudflare-dns.com/dns-query
directory: "/etc/unbound"
username: unbound
verbosity: 2
interface: 0.0.0.0
prefetch: yes
access-control: 192.168.50.0/24 allow
access-control: 127.0.0.1/24 allow
hide-identity: yes
hide-version: yes
remote-control:
control-enable: no
control-interface: 127.0.0.1
control-port: 8953我的文件怎么了?
非常感谢!
发布于 2021-09-13 07:57:57
directory应该在server下,而不是在forward-zone下(如果缩进行并不重要)。另外,forward-addr应该是一个IP地址,而不是一个URL (我不确定Unbound是否可以充当DoH客户端)。
https://serverfault.com/questions/1077374
复制相似问题