forked from netxillon/DevOps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDynamic_DNS.txt
64 lines (39 loc) · 862 Bytes
/
Dynamic_DNS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# vi /etc/named.conf
controls {
inet 127.0.0.1 port 953
allow {127.0.0.1;} keys {"rndckey";};
};
zone "example.com" IN {
type master;
file “example.for";
allow-update { key rndckey; } ;
};
zone "0.168.192.in?addr.arpa" IN {
type master;
file “example.rev";
allow-update { key rndckey; } ;
};
================
DHCP
--------
[root@dns ~]# vi /etc/dhcpd.conf
To add the options
include "/etc/rndc.key";
ddns-domain “example.com";
ddns-update-style interim;
ddns-rev-domain "0.168.192.in-addr.arpa";
ddns-updates on; allow Dynamic DNS
authoritative;
#master server for this domain
# Allow only the DHCP server to update DNS
ignore client-updates;
allow unknown-clients;zone 0.168.192.in-addr.arpa.
{
primary 192.168.0.252;
key "rndckey";
}
zone techbrown.com. {
primary 192.168.0.252;
key "rndckey";
}
range 192.168.0.20 192.168.0.59;