Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !!!!!------------dhcpd.conf------------!!!!!
- ddns-update-style interim;
- update-static-leases on;
- allow client-updates;
- default-lease-time 600;
- max-lease-time 7200;
- log-facility local7;
- key DHCP_UPDATER {
- algorithm HMAC-MD5.SIG-ALG.REG.INT;
- secret "omitted";
- };
- zone ewocorp.example. {
- primary 127.0.0.1;
- key DHCP_UPDATER;
- }
- subnet 10.0.2.0 netmask 255.255.255.0 {
- range 10.0.2.2 10.0.2.254;
- ddns-updates on;
- ddns-domainname "ewocorp.example.";
- option domain-name "ewocorp.example.";
- option domain-name-servers dns1.ewocorp.example;
- option routers 10.0.2.1;
- option broadcast-address 10.0.2.255;
- default-lease-time 600;
- max-lease-time 7200;
- }
- !!!!!------------named.conf-----------!!!!!
- options {
- listen-on port 53 { 127.0.0.1; 10.0.2.0/24; };
- listen-on-v6 port 53 { ::1; };
- directory "/var/named";
- dump-file "/var/named/data/cache_dump.db";
- statistics-file "/var/named/data/named_stats.txt";
- memstatistics-file "/var/named/data/named_mem_stats.txt";
- allow-query { localhost;10.0.2.0/24; };
- recursion yes;
- dnssec-enable yes;
- dnssec-validation yes;
- /* Path to ISC DLV key */
- bindkeys-file "/etc/named.iscdlv.key";
- managed-keys-directory "/var/named/dynamic";
- pid-file "/run/named/named.pid";
- session-keyfile "/run/named/session.key";
- forwarders {
- 8.8.8.8;
- 8.8.4.4;
- };
- };
- logging {
- channel default_debug {
- file "data/named.run";
- severity dynamic;
- };
- };
- zone "." IN {
- type hint;
- file "named.ca";
- };
- zone "ewocorp.example" IN {
- type master;
- file "data/ewocorp.example.zone";
- allow-update{key DHCP_UPDATER;};
- };
- include "/etc/named.rfc1912.zones";
- include "/etc/named.root.key";
- include "/etc/named.dhcp.key";
- !!!!!------------ewocorp.example.zone------------!!!!!
- $TTL 86400
- $ORIGIN ewocorp.example.
- ewocorp.example. IN SOA dns1.ewocorp.example. ewo.ewocorp.example. (
- 2016102603
- 28800
- 7200
- 864000
- 86400 )
- NS dns1.ewocorp.example.
- dns1 IN A 10.0.2.114
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement