Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. !!!!!------------dhcpd.conf------------!!!!!
  2.  
  3. ddns-update-style interim;
  4. update-static-leases on;
  5. allow client-updates;
  6.  
  7. default-lease-time 600;
  8. max-lease-time 7200;
  9. log-facility local7;
  10.  
  11. key DHCP_UPDATER {
  12. algorithm HMAC-MD5.SIG-ALG.REG.INT;
  13. secret "omitted";
  14. };
  15.  
  16. zone ewocorp.example. {
  17. primary 127.0.0.1;
  18. key DHCP_UPDATER;
  19. }
  20.  
  21. subnet 10.0.2.0 netmask 255.255.255.0 {
  22. range 10.0.2.2 10.0.2.254;
  23. ddns-updates on;
  24. ddns-domainname "ewocorp.example.";
  25. option domain-name "ewocorp.example.";
  26. option domain-name-servers dns1.ewocorp.example;
  27. option routers 10.0.2.1;
  28. option broadcast-address 10.0.2.255;
  29. default-lease-time 600;
  30. max-lease-time 7200;
  31. }
  32.  
  33. !!!!!------------named.conf-----------!!!!!
  34.  
  35. options {
  36. listen-on port 53 { 127.0.0.1; 10.0.2.0/24; };
  37. listen-on-v6 port 53 { ::1; };
  38. directory "/var/named";
  39. dump-file "/var/named/data/cache_dump.db";
  40. statistics-file "/var/named/data/named_stats.txt";
  41. memstatistics-file "/var/named/data/named_mem_stats.txt";
  42. allow-query { localhost;10.0.2.0/24; };
  43. recursion yes;
  44.  
  45. dnssec-enable yes;
  46. dnssec-validation yes;
  47.  
  48. /* Path to ISC DLV key */
  49. bindkeys-file "/etc/named.iscdlv.key";
  50.  
  51. managed-keys-directory "/var/named/dynamic";
  52.  
  53. pid-file "/run/named/named.pid";
  54. session-keyfile "/run/named/session.key";
  55. forwarders {
  56. 8.8.8.8;
  57. 8.8.4.4;
  58. };
  59. };
  60.  
  61. logging {
  62. channel default_debug {
  63. file "data/named.run";
  64. severity dynamic;
  65. };
  66. };
  67.  
  68. zone "." IN {
  69. type hint;
  70. file "named.ca";
  71. };
  72.  
  73. zone "ewocorp.example" IN {
  74. type master;
  75. file "data/ewocorp.example.zone";
  76. allow-update{key DHCP_UPDATER;};
  77. };
  78.  
  79. include "/etc/named.rfc1912.zones";
  80. include "/etc/named.root.key";
  81. include "/etc/named.dhcp.key";
  82.  
  83. !!!!!------------ewocorp.example.zone------------!!!!!
  84. $TTL 86400
  85. $ORIGIN ewocorp.example.
  86.  
  87. ewocorp.example. IN SOA dns1.ewocorp.example. ewo.ewocorp.example. (
  88. 2016102603
  89. 28800
  90. 7200
  91. 864000
  92. 86400 )
  93.  
  94. NS dns1.ewocorp.example.
  95. dns1 IN A 10.0.2.114
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement