Advertisement
Guest User

DNS

a guest
Jul 27th, 2012
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. =================================/etc/named.conf==========================================
  2. //
  3. // /etc/named.conf
  4. //
  5.  
  6. options {
  7. directory "/var/named";
  8. pid-file "/var/run/named/named.pid";
  9. auth-nxdomain yes;
  10. datasize default;
  11. // Uncomment these to enable IPv6 connections support
  12. // IPv4 will still work:
  13. // listen-on-v6 { any; };
  14. // Add this for no IPv4:
  15. // listen-on { none; };
  16.  
  17. // Default security settings.
  18. allow-recursion { 127.0.0.1; };
  19. allow-transfer { none; };
  20. allow-update { none; };
  21. version none;
  22. hostname none;
  23. server-id none;
  24. };
  25.  
  26. //zone "localhost" IN {
  27. // type master;
  28. // file "localhost.zone";
  29. // allow-transfer { any; };
  30. //};
  31.  
  32. zone "." IN {
  33. type hint;
  34. file "root.hint";
  35. };
  36.  
  37. //zone "example.org" IN {
  38. // type slave;
  39. // file "example.zone";
  40. // masters {
  41. // 192.168.1.100;
  42. // };
  43. // allow-query { any; };
  44. // allow-transfer { any; };
  45. //};
  46.  
  47. logging {
  48. channel xfer-log {
  49. file "/var/log/named.log";
  50. print-category yes;
  51. print-severity yes;
  52. print-time yes;
  53. severity debug;
  54. };
  55. category xfer-in { xfer-log; };
  56. category xfer-out { xfer-log; };
  57. category notify { xfer-log; };
  58. };
  59.  
  60. include "/etc/named/domain-enabled.conf";
  61. ==========================================================================================
  62. =============================/etc/named/domain-enabled.conf===============================
  63. zone "dimitrisze.com" IN {
  64. type master;
  65. file "/etc/named/domain-enabled/mydomain.com.db";
  66. allow-update { none; };
  67. notify no;
  68. };
  69. ==========================================================================================
  70. ========================/etc/named/domain-enabled/mydomain.com.db=========================
  71. $TTL 7200
  72. @ IN SOA mydomain.com. (
  73. 2012072701 ; Serial
  74. 28800 ; Refresh
  75. 1800 ; Retry
  76. 604800 ; Expire
  77. 86400 ) ; Negative Cache TTL
  78. IN NS ns1
  79. ns1 IN A 0.0.0.0
  80. localhost IN A 127.0.0.1
  81. @ IN MX 10 mail
  82. imap IN CNAME mail
  83. smtp IN CNAME mail
  84. @ IN A 0.0.0.0
  85. www IN A 0.0.0.0
  86. mail IN A 0.0.0.0
  87. @ IN TXT "v=spf1 mx"
  88. ==========================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement