未绑定错误 - unbound.service:启动请求重复太快

未绑定错误 - unbound.service:启动请求重复太快

我是 unbound 的新用户。

我有一个网络 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

我的 conf 文件中有什么错误?

多谢!

答案1

directory应该在 之下server,而不是 之下forward-zone(行是否缩进无关紧要)。此外,forward-addr应该是 IP 地址,而不是 URL(我不确定 Unbound 是否可以充当 DoH 客户端)。

相关内容