NoPaste

named.conf von feldmaus 2010 März 26

von feldmaus

SNIPPET_TEXT:
  1. // This is the primary configuration file for the BIND DNS server named.
  2. //
  3. // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
  4. // structure of BIND configuration files in Debian, *BEFORE* you customize
  5. // this configuration file.
  6. //
  7. // If you are just adding zones, please do that in /etc/bind/named.conf.local
  8.  
  9. key "mykey" {
  10.         algorithm hmac-md5;
  11.         secret "c5Vl024ucocV2pG7OSwUhg==";
  12. };
  13.  
  14. key feld-server.feldland.lan. {
  15.         algorithm HMAC-MD5.SIG-ALG.REG.INT;
  16.         secret  TNCrihQV8NjY6bzA5GMJIg==;
  17. };
  18.  
  19. include "/etc/bind/named.conf.options";
  20.  
  21. // be authoritative for the localhost forward and reverse zones, and for
  22. // broadcast zones as per RFC 1912
  23.  
  24. zone "localhost" {
  25.         type master;
  26.         file "/etc/bind/db.local";
  27. };
  28.  
  29. zone "127.in-addr.arpa" {
  30.         type master;
  31.         file "/etc/bind/db.127";
  32. };
  33.  
  34. zone "0.in-addr.arpa" {
  35.         type master;
  36.         file "/etc/bind/db.0";
  37. };
  38.  
  39. zone "255.in-addr.arpa" {
  40.         type master;
  41.         file "/etc/bind/db.255";
  42. };
  43.  
  44. // prime the server with knowledge of the root servers
  45. zone "." {
  46.         type hint;
  47.         file "/etc/bind/db.root";
  48. };
  49.  
  50. // zone "com" { type delegation-only; };
  51. // zone "net" { type delegation-only; };
  52.  
  53. // From the release notes:
  54. //  Because many of our users are uncomfortable receiving undelegated answers
  55. //  from root or top level domains, other than a few for whom that behaviour
  56. //  has been trusted and expected for quite some length of time, we have now
  57. //  introduced the "root-delegations-only" feature which applies delegation-only
  58. //  logic to all top level domains, and to the root domain.  An exception list
  59. //  should be specified, including "MUSEUM" and "DE", and any other top level
  60. //  domains from whom undelegated responses are expected and trusted.
  61. // root-delegation-only exclude { "DE"; "MUSEUM"; };
  62.  
  63. include "/etc/bind/named.conf.local";

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN