Rev | Author | # | Line |
---|---|---|---|
4 | DavidMoore | 1 | This is an example of a DDNS configuration running on Fedora Core 1 Linux. |
2 | |||
3 | http://fedoranews.org/contributors/derek_pienaar/ddns | ||
4 | http://ops.ietf.org/dns/dynupd/secure-ddns-howto.html | ||
5 | [DHCPNotes] are well worth reading. | ||
6 | |||
7 | DynamicDNS (DDNS) makes adding a new computer to my network as simple as plugging it into my switch. | ||
8 | The new client tells the server what its host name is, and the server allocates it an address (DHCP) and lets the | ||
9 | rest of the network know (DNS). No configuration at the server is required! | ||
10 | (It's the next best thing to ZeroConf.) | ||
11 | I like having this running as I was told it "couldn't be done" :-D. | ||
12 | |||
13 | The "secret key" is generated with dns-keygen. | ||
14 | |||
15 | !! /etc/named.conf | ||
16 | |||
17 | // Dave's own hacked named.conf | ||
18 | // with dynamic DNS :-D | ||
19 | |||
20 | options { | ||
21 | directory "/var/named"; | ||
22 | allow-query { | ||
23 | 192.168.10/24; | ||
24 | 192.168.12/24; | ||
25 | localhost; | ||
26 | }; | ||
27 | // forward only; | ||
28 | // forward first; | ||
29 | forwarders { | ||
30 | 210.55.24.14; | ||
31 | 210.55.24.8; | ||
32 | }; | ||
5 | GeorgeDickey | 33 | // just listen internally |
34 | listen-on { | ||
35 | 192.168.10/24; | ||
36 | 192.168.12/24; | ||
37 | __127.0.0.1;__ | ||
38 | }; | ||
4 | DavidMoore | 39 | |
40 | }; | ||
41 | |||
42 | |||
43 | controls { | ||
44 | inet 127.0.0.1 allow { localhost; } keys { rndckey; }; | ||
45 | }; | ||
46 | |||
47 | // Master DNS servers | ||
48 | zone "." IN { | ||
49 | type hint; | ||
50 | file "named.ca"; | ||
51 | }; | ||
52 | |||
53 | // Localhost addresses | ||
54 | zone "localhost" IN { | ||
55 | type master; | ||
56 | file "localhost.zone"; | ||
57 | allow-update { none; }; | ||
58 | }; | ||
59 | zone "0.0.127.in-addr.arpa" IN { | ||
60 | type master; | ||
61 | file "named.local"; | ||
62 | allow-update { none; }; | ||
63 | }; | ||
64 | |||
65 | // Magic key which lets DHCP update DNS | ||
66 | key "DHCP-UPDATER" { | ||
67 | algorithm hmac-md5; | ||
68 | secret "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"; | ||
69 | }; | ||
70 | |||
71 | // Home network | ||
72 | zone "invermay" { | ||
73 | type master; | ||
74 | notify no; | ||
75 | file "invermay.zone"; | ||
76 | allow-update { key DHCP-UPDATER; }; | ||
77 | }; | ||
78 | |||
79 | // Reverse name resolution for home network | ||
80 | zone "12.168.192.in-addr.arpa" { | ||
81 | type master; | ||
82 | notify no; | ||
83 | file "named.invermay"; | ||
84 | allow-update { key DHCP-UPDATER; }; | ||
85 | }; | ||
86 | |||
87 | // Reverse name resolution for wireless link | ||
88 | zone "10.168.192.in-addr.arpa" { | ||
89 | type master; | ||
90 | notify no; | ||
91 | file "named.invermay.decknet"; | ||
92 | allow-update { key DHCP-UPDATER; }; | ||
93 | }; | ||
94 | |||
95 | include "/etc/rndc.key"; | ||
96 | |||
97 | |||
98 | !! /etc/dhcpd.conf | ||
99 | |||
100 | # Dave's own hacked dhcpd.conf | ||
101 | # with dynamic DNS :-D | ||
102 | |||
103 | # Don't forget command line options are in /etc/sysconfig/dhcpd | ||
104 | |||
105 | ddns-domainname "invermay"; | ||
106 | ddns-update-style interim; | ||
107 | #ignore client-updates; | ||
108 | #ddns-updates off; | ||
109 | |||
110 | # Magic key which lets DHCP update DNS | ||
111 | key "DHCP-UPDATER" { | ||
112 | algorithm hmac-md5; | ||
113 | secret "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"; | ||
114 | }; | ||
115 | |||
116 | # DNS zones to update | ||
117 | zone invermay. { | ||
118 | primary 127.0.0.1; | ||
119 | key DHCP-UPDATER; | ||
120 | } | ||
121 | zone 12.168.192.in-addr.arpa. { | ||
122 | primary 192.168.12.254; | ||
123 | key DHCP-UPDATER; | ||
124 | } | ||
125 | zone 10.168.192.in-addr.arpa. { | ||
126 | primary 192.168.10.254; | ||
127 | key DHCP-UPDATER; | ||
128 | } | ||
129 | |||
130 | # Home network on eth2 | ||
131 | subnet 192.168.12.0 netmask 255.255.255.0 { | ||
132 | # Default gateway | ||
133 | option routers 192.168.12.254; | ||
134 | option subnet-mask 255.255.255.0; | ||
135 | |||
136 | option domain-name "invermay"; | ||
137 | option domain-name-servers 192.168.12.254; | ||
138 | |||
139 | range 192.168.12.128 192.168.12.254; | ||
140 | default-lease-time 86400; # 1 day | ||
141 | max-lease-time 259200; # 3 days | ||
142 | |||
143 | authoritative; | ||
144 | ddns-updates on; | ||
145 | } | ||
146 | |||
147 | # Wireless link on eth0 | ||
148 | subnet 192.168.10.0 netmask 255.255.255.0 { | ||
149 | # Default gateway | ||
150 | option routers 192.168.10.254; | ||
151 | option subnet-mask 255.255.255.0; | ||
152 | |||
153 | option domain-name "invermay"; | ||
154 | option domain-name-servers 192.168.10.254; | ||
155 | |||
156 | range 192.168.10.128 192.168.10.254; | ||
157 | default-lease-time 86400; # 1 day | ||
158 | max-lease-time 259200; # 3 days | ||
159 | |||
160 | authoritative; | ||
161 | ddns-updates on; | ||
162 | } | ||
163 | |||
164 | |||
165 | !! /var/named/invermay.zone | ||
166 | |||
167 | $ORIGIN . | ||
168 | $TTL 604800 ; 1 week | ||
169 | invermay IN SOA rata.invermay. root.rata.invermay. ( | ||
170 | 107 ; serial | ||
171 | 28800 ; refresh (8 hours) | ||
172 | 14400 ; retry (4 hours) | ||
173 | 3024000 ; expire (5 weeks) | ||
174 | 86400 ; minimum (1 day) | ||
175 | ) | ||
176 | NS rata.invermay. | ||
177 | $ORIGIN invermay. | ||
178 | $TTL 129600 ; 1 day 12 hours | ||
179 | feijoa A 192.168.10.253 | ||
180 | TXT "3128380ff01e7006b0688a5d32bba2d551" | ||
181 | $TTL 604800 ; 1 week | ||
182 | localhost A 127.0.0.1 | ||
183 | ollienet A 192.168.12.254 | ||
184 | rata A 192.168.12.254 | ||
185 | tuxnet A 192.168.12.254 | ||
186 | |||
187 | !! /var/named/localhost.zone | ||
188 | |||
189 | $TTL 86400 | ||
190 | $ORIGIN localhost. | ||
191 | @ 1D IN SOA @ root ( | ||
192 | 42 ; serial (d. adams) | ||
193 | 3H ; refresh | ||
194 | 15M ; retry | ||
195 | 1W ; expiry | ||
196 | 1D ) ; minimum | ||
197 | |||
198 | 1D IN NS @ | ||
199 | 1D IN A 127.0.0.1 | ||
200 | |||
201 | !! /var/named/named.invermay | ||
202 | |||
203 | $ORIGIN . | ||
204 | $TTL 604800 ; 1 week | ||
205 | 12.168.192.in-addr.arpa IN SOA rata.invermay. root.rata.invermay. ( | ||
206 | 104 ; serial | ||
207 | 28800 ; refresh (8 hours) | ||
208 | 14400 ; retry (4 hours) | ||
209 | 3024000 ; expire (5 weeks) | ||
210 | 86400 ; minimum (1 day) | ||
211 | ) | ||
212 | NS rata.invermay. | ||
213 | $ORIGIN 12.168.192.in-addr.arpa. | ||
214 | 254 PTR rata.invermay. | ||
215 | |||
216 | !! /var/named/named/named.invermay.decknet | ||
217 | |||
218 | $ORIGIN . | ||
219 | $TTL 86400 ; 1 day | ||
220 | 10.168.192.in-addr.arpa IN SOA rata.invermay. root.rata.invermay. ( | ||
221 | 101 ; serial | ||
222 | 28800 ; refresh (8 hours) | ||
223 | 14400 ; retry (4 hours) | ||
224 | 3024000 ; expire (5 weeks) | ||
225 | 86400 ; minimum (1 day) | ||
226 | ) | ||
227 | NS rata.invermay. | ||
228 | $ORIGIN 10.168.192.in-addr.arpa. | ||
229 | $TTL 129600 ; 1 day 12 hours | ||
230 | 253 PTR feijoa.invermay. | ||
231 | $TTL 86400 ; 1 day | ||
232 | 254 PTR rata.invermay. | ||
233 | |||
234 | !! /var/named/named.local | ||
235 | |||
236 | $TTL 86400 | ||
237 | @ IN SOA localhost. root.localhost. ( | ||
238 | 1997022700 ; Serial | ||
239 | 28800 ; Refresh | ||
240 | 14400 ; Retry | ||
241 | 3600000 ; Expire | ||
242 | 86400 ) ; Minimum | ||
243 | IN NS localhost. | ||
244 | |||
245 | 1 IN PTR localhost. | ||
246 | |||
247 | ------- | ||
248 | |||
249 | And I'd changed a few things so it took me all day to figure out. |
lib/blame.php:177: Warning: Invalid argument supplied for foreach() (...repeated 2 times)
lib/plugin/WlugLicense.php (In template 'html'):99: Warning: Invalid argument supplied for foreach()