Advertisement
malak33

/etc/named/conf

Dec 10th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.07 KB | None | 0 0
  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.  
  10. options {
  11.         listen-on port 53 { any; };
  12.         listen-on-v6 port 53 { any; };
  13.         directory       "/var/named";
  14.         dump-file       "/var/named/data/cache_dump.db";
  15.         statistics-file "/var/named/data/named_stats.txt";
  16.         memstatistics-file "/var/named/data/named_mem_stats.txt";
  17.         allow-query     { localhost; };
  18.         recursion yes;
  19.  
  20.         dnssec-enable yes;
  21.         dnssec-validation yes;
  22.         dnssec-lookaside auto;
  23.  
  24.         /* Path to ISC DLV key */
  25.         bindkeys-file "/etc/named.iscdlv.key";
  26. };
  27.  
  28. logging {
  29.         channel default_debug {
  30.                 file "data/named.run";
  31.                 severity dynamic;
  32.         };
  33. };
  34. #The followingzone definitions don't need any modification. the first one
  35. #is the definition of the root name servers and sets up our server as a
  36. #caching-capable DNS server.
  37. #the second one defines localhost.
  38. #the third zone definition defines the reverse lookup for localhost.
  39. #
  40. #
  41. zone "." IN {
  42.         type hint;
  43.         file "root.hints";
  44. };
  45. zone "localhost" in {
  46.         type master;
  47.         file "localhost.db";
  48. };
  49. zone "0.0.127.in-addr.arpa" in {
  50.         type master;
  51.         file "127.0.0.rev";
  52. };
  53. #the zone definition below is for the domain that our name server is
  54. #authoritative for i.e. the example.org domain name.
  55. #
  56. zone "example.org" {
  57.         type master;
  58.         file "example.org.db";
  59. };
  60. #below is the zone for the in-addr.arpa domain, for the example.org site.
  61. zone "15.2.0.10.in-addr.arpa" {
  62.         type master;
  63.         file "example.org.rev";
  64. };
  65. #BELOW IS THE ENTRy FOR THE SUB-DOMAIN FOR WhICH THIS SERvER IS A SLAVE SERVER
  66. #ip address of sales.example.orgs master server is 192.168.1.2
  67. zone "sales.example.org" {
  68.         type slave;
  69.         file "sales.example.org.bk";
  70.         masters {10.0.2.16;};
  71. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement