The USA Linux Users Group Paste Bin

  • el
  • pt
  • This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

    The USA Linux Users Group Paste Bin

    Posted by BrionS on Tue 19th Sep 07:18
    download | new post

    1. /etc/bind/named.conf
    2. // This is the primary configuration file for the BIND DNS server named.
    3. //
    4. // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
    5. // structure of BIND configuration files in Debian, *BEFORE* you customize
    6. // this configuration file.
    7. //
    8. // If you are just adding zones, please do that in /etc/bind/named.conf.local
    9.  
    10. include "/etc/bind/named.conf.options";
    11.  
    12. // prime the server with knowledge of the root servers
    13. zone "." {
    14.         type hint;
    15.         file "/etc/bind/db.root";
    16. };
    17.  
    18. // be authoritative for the localhost forward and reverse zones, and for
    19. // broadcast zones as per RFC 1912
    20.  
    21. zone "localhost" {
    22.         type master;
    23.         file "/etc/bind/db.local";
    24. };
    25.  
    26. zone "127.in-addr.arpa" {
    27.         type master;
    28.         file "/etc/bind/db.127";
    29. };
    30.  
    31. zone "0.in-addr.arpa" {
    32.         type master;
    33.         file "/etc/bind/db.0";
    34. };
    35.  
    36. zone "255.in-addr.arpa" {
    37.         type master;
    38.         file "/etc/bind/db.255";
    39. };
    40.  
    41. // zone "com" { type delegation-only; };
    42. // zone "net" { type delegation-only; };
    43.  
    44. // From the release notes:
    45. //  Because many of our users are uncomfortable receiving undelegated answers
    46. //  from root or top level domains, other than a few for whom that behaviour
    47. //  has been trusted and expected for quite some length of time, we have now
    48. //  introduced the "root-delegations-only" feature which applies delegation-only//  logic to all top level domains, and to the root domain.  An exception list
    49. //  should be specified, including "MUSEUM" and "DE", and any other top level
    50. //  domains from whom undelegated responses are expected and trusted.
    51. // root-delegation-only exclude { "DE"; "MUSEUM"; };
    52.  
    53. include "/etc/bind/named.conf.local";
    54.  
    55. /etc/bind/named.conf.options
    56. options {
    57.         directory "/var/cache/bind";
    58.  
    59.         // If there is a firewall between you and nameservers you want
    60.         // to talk to, you might need to uncomment the query-source
    61.         // directive below.  Previous versions of BIND always asked
    62.         // questions using port 53, but BIND 8.1 and later use an unprivileged
    63.         // port by default.
    64.  
    65.         // query-source address * port 53;
    66.  
    67.         // If your ISP provided one or more IP addresses for stable
    68.         // nameservers, you probably want to use them as forwarders.
    69.         // Uncomment the following block, and insert the addresses replacing
    70.         // the all-0's placeholder.
    71.  
    72.         forwarders {
    73.                 24.92.226.9;
    74.                 24.92.226.102;
    75.         };
    76.  
    77.         auth-nxdomain no;    # conform to RFC1035
    78. };
    79.  
    80. /etc/bind/named.conf.local
    81. //
    82. // Do any local configuration here
    83. //
    84.  
    85. // Consider adding the 1918 zones here, if they are not used in your
    86. // organization
    87. include "/etc/bind/zones.rfc1918";
    88.  
    89. zone "11.0.10.in-addr.arpa" {
    90.         type master;
    91.         file "db.10";
    92. };
    93.  
    94. zone "home.net" {
    95.         type master;
    96.         notify no;
    97.         file "db.home.net";
    98. };
    99.  
    100. /etc/bind/db.10
    101. ;
    102. ; BIND reverse data file for private network
    103. ;
    104. $TTL    604800
    105. @       IN      SOA     ns.home.net. root.ns.home.net. (
    106.                               1         ; Serial
    107.                          604800         ; Refresh
    108.                           86400         ; Retry
    109.                         2419200         ; Expire
    110.                          604800 )       ; Negative Cache TTL
    111.  
    112.                 NS      ns.home.net.
    113.  
    114. 1               PTR     orion.home.net.
    115.                 PTR     ns.home.net.
    116. 2               PTR     whitestar.home.net.
    117. 3               PTR     virgo.home.net.
    118. 4               PTR     lightyear.home.net.
    119.  
    120. /etc/bind/db.home.net
    121. ; BIND reverse data file for home.net zone
    122. ;
    123. $TTL    86400
    124. @       IN      SOA     home.net. root.home.net. (
    125.                               1         ; Serial
    126.                          604800         ; Refresh
    127.                           86400         ; Retry
    128.                         2419200         ; Expire
    129.                           86400 )       ; Negative Cache TTL
    130.  
    131.                 NS      ns.home.net.
    132.         IN      A       10.0.11.114
    133.         IN      MX      10  pop-server.rochester.rr.com.
    134.  
    135. localhost       A       127.0.0.1
    136. orion           A       10.0.11.114
    137. ns              CNAME   orion
    138. whitestar       A       10.0.11.201
    139. virgo           A       10.0.11.207
    140. lightyear       A       10.0.11.100

    Submit a correction or amendment below. (click here to make a fresh posting)
    After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

    Use syntax highlighting

    To highlight particular lines, prefix each line with @@


    Remember my settings