unbound config

server:
 
         verbosity: 1
         statistics-interval: 0
         statistics-cumulative: no
         extended-statistics: yes
         num-threads: 2
         interface: 0.0.0.0
         interface-automatic: no
        so-rcvbuf: 4m
          so-sndbuf: 4m
          msg-cache-size: 64m
          rrset-cache-size: 64m
          cache-max-ttl: 600
          do -ip4: yes
          do -ip6: no
          access-control: 10.0.0.0 /8 allow
         chroot: ""
         username: "unbound"
         directory: "/etc/unbound"
        log- time -ascii: yes
         pidfile: "/var/run/unbound/unbound.pid"
          hide-identity: yes
         harden-glue: yes
         harden-dnssec-stripped: yes
         harden-below-nxdomain: yes
         harden-referral-path: yes
         use-caps- for - id : no
         unwanted-reply-threshold: 10000000
         do -not-query-localhost: no
         prefetch: yes
         prefetch-key: yes
         rrset-roundrobin: yes
         minimal-responses: yes
          module-config: "iterator"
         trusted-keys- file : /etc/unbound/keys .d/*.key
         auto-trust-anchor- file : "/var/lib/unbound/root.key"
         val-clean-additional: yes
         val-permissive-mode: no
         val-log-level: 1
         local -zone: "google.com" redirect
         local -data: "google.com IN A 10.8.128.235"
         local -zone: "google.com.hk" redirect
         local -data: "google.com.hk IN A 10.8.128.235"
         include: /etc/unbound/local .d/*.conf
remote-control:
         control- enable : yes
         server-key- file : "/etc/unbound/unbound_server.key"
 
         server-cert- file : "/etc/unbound/unbound_server.pem"
 
         control-key- file : "/etc/unbound/unbound_control.key"
 
         control-cert- file : "/etc/unbound/unbound_control.pem"
 
include: /etc/unbound/conf .d/*.conf
forward-zone:
         name: "."
         forward-addr:10.8.2.55

转载于:https://www.cnblogs.com/psggz/p/8393783.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值