子域的未绑定前向区域重叠

子域的未绑定前向区域重叠

我有一个子域 (imap) 可以从外部网络访问,还有一些子域 (文件驱动器) 只能从内部网络访问。我无法访问大学的 DNS 服务器。我尝试对一些子域使用不同的 DNS 服务器,但没有成功。

我想要 imap.example.com 的 dns 服务器 8.8.8.8,以及仅其余域 example.com 的 dns 服务器 192.168.1.15。

我在 unbound.conf 中尝试了以下内容:

server:
  use-syslog: yes
  username: "unbound"
  directory: "/etc/unbound"
  trust-anchor-file: trusted-key.key
  root-hints: "/etc/unbound/root.hints"
forward-zone:
  name: "imap.example.com."
  forward-addr: 8.8.8.8
forward-zone:
  name: "example.com."
  forward-addr: 192.168.1.15
forward-zone:
  name: "."
  forward-addr: 8.8.8.8 
remote-control:
    # Enable remote control with unbound-control(8) here.
    # set up the keys and certificates with unbound-control-setup.
    control-enable: yes

    # what interfaces are listened to for remote control.
    # give 0.0.0.0 and ::0 to listen to all interfaces.
    control-interface: 127.0.0.1

    # port number for remote control operations.
    control-port: 8953

    # unbound server key file.
    server-key-file: "/etc/unbound/unbound_server.key"

    # unbound server certificate file.
    server-cert-file: "/etc/unbound/unbound_server.pem"

    # unbound-control key file.
    control-key-file: "/etc/unbound/unbound_control.key"

    # unbound-control certificate file.
    control-cert-file: "/etc/unbound/unbound_control.pem"

相关内容