網頁

2015年3月30日

Install Your Own DNS Server on FreeNAS/BSD

參考網站


  1. ## DrKK's Simple recursive caching DNS pool
  2. ##
  3. ## Conservative system resource usage for ZFS/FreeNAS environment.
  4. ## ***NOT*** appropriate for a heavily loaded environment!
  5. ##
  6. ## This uses settings that are pretty minimal---i.e., I expect
  7. ## this keeps the memory footprint low, while generally offering
  8. ## full performance for the typical home/small business user.  These
  9. ## settings would be ridiculous for a large enterprise.
  10. #
  11. ## DrKK can be found on the #FreeNAS irc channel, or in the forums
  12. ## at http://forums.freenas.org/
  13. #
  14. ## The DNS forwarders listed below work well for me.  DO YOUR RESEARCH.
  15. #
  16. server:
  17.   interface: 0.0.0.0
  18. # The following line assumes your LAN is on the usual 192.168.x.x network.  Change
  19. # this setting if necessary.
  20.   access-control: 192.168.0.0/16 allow
  21.   verbosity: 1
  22.   statistics-interval: 3600
  23.   statistics-cumulative: yes
  24. #  outgoing-range: 800
  25.   outgoing-range: 256
  26.   num-threads: 1
  27.   msg-cache-size: 1m
  28.   msg-cache-slabs: 1
  29.   num-queries-per-thread: 128
  30.   rrset-cache-size: 2m
  31.   rrset-cache-slabs: 1
  32.   infra-cache-numhosts: 16
  33.   infra-cache-slabs: 1
  34.   do-ip4: yes
  35.   do-ip6: no
  36.   do-udp: yes
  37.   do-tcp: no
  38.   logfile: "unbound.log"
  39.   use-syslog: no
  40.   log-time-ascii: yes
  41.   private-address: 10.0.0.0/8
  42.   private-address: 172.16.0.0/12
  43.   private-address: 192.168.0.0/16
  44.   private-address: 169.254.0.0/16
  45.   do-not-query-localhost: yes
  46.   log-queries: no
  47.   identity: "unbound DNS running on FreeNAS"
  48.   target-fetch-policy: "0 0 0 0 0"
  49.   prefetch: yes
  50.   cache-max-ttl: 604800
  51.   module-config: "iterator"
  52. forward-zone:
  53. ## This is a good set of resolvers for the eastern US.  Recommend
  54. ## that you investigate the best servers for your location.  I recommend
  55. ## Steve Gibson's DNSBench: https://www.grc.com/dns/benchmark.htm
  56.   name: "."
  57.   forward-addr: 199.45.32.40
  58.   forward-addr: 63.218.44.186
  59.   forward-addr: 216.52.126.1
  60.   forward-addr: 8.8.8.8
  61. # OPTIONAL REMOTE CONTROL SETTINGS (comment out if desired)
  62. # You must run unbound-control-setup before unbound-control can be used.
  63. remote-control:
  64.   control-enable: yes
  65.   control-interface: 0.0.0.0

沒有留言:

張貼留言