From anon, 3 Months ago, written in Plain Text.
This paste will slip away in 1 Second.
Embed
  1. //
  2. // named.conf
  3. //
  4. // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
  5. // server as a caching only nameserver (as a localhost DNS resolver only).
  6. //
  7. // See /usr/share/doc/bind*/sample/ for example named configuration files.
  8. //
  9. // See the BIND Administrator's Reference Manual (ARM) for details about the
  10. // configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
  11.  
  12. include "/etc/rndc.key";
  13.  
  14. options {
  15.         listen-on port 53 { 127.0.0.1; 192.168.1.1; };
  16.         # listen-on-v6 port 53 { ::1; };
  17.         directory       "/var/named";
  18.         dump-file       "/var/named/data/cache_dump.db";
  19.         statistics-file "/var/named/data/named_stats.txt";
  20.         memstatistics-file "/var/named/data/named_mem_stats.txt";
  21.         recursing-file  "/var/named/data/named.recursing";
  22.         secroots-file   "/var/named/data/named.secroots";
  23.         allow-query     { localhost; 192.168.1.0/13; };
  24.  
  25.         /*
  26.          - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
  27.          - If you are building a RECURSIVE (caching) DNS server, you need to enable
  28.            recursion.
  29.          - If your recursive DNS server has a public IP address, you MUST enable access
  30.            control to limit queries to your legitimate users. Failing to do so will
  31.            cause your server to become part of large scale DNS amplification
  32.            attacks. Implementing BCP38 within your network would greatly
  33.            reduce such attack surface
  34.         */
  35.         recursion yes;
  36.  
  37.         dnssec-enable yes;
  38.         dnssec-validation yes;
  39.  
  40.         /* Path to ISC DLV key */
  41.         bindkeys-file "/etc/named.root.key";
  42.  
  43.         managed-keys-directory "/var/named/dynamic";
  44.  
  45.         pid-file "/run/named/named.pid";
  46.         session-keyfile "/run/named/session.key";
  47. };
  48.  
  49. logging {
  50.         channel default_debug {
  51.                 file "data/named.run";
  52.                 severity dynamic;
  53.         };
  54. };
  55.  
  56. zone "." IN {
  57.         type hint;
  58.         file "named.ca";
  59. };
  60.  
  61. zone "vbkh.local" IN {
  62.         type master;
  63.         file "/etc/named/zones/vbkh.local.db";
  64.         allow-update {key "rndc-key";};
  65. };
  66.  
  67. zone "1.168.192.in-addr.arpa" IN {
  68.         type master;
  69.         file "/etc/named/zones/192.168.1.db";
  70.         allow-update {key "rndc-key";};
  71. };
  72.  
  73. include "/etc/named.rfc1912.zones";
  74. include "/etc/named.root.key";
  75.