]>
Commit | Line | Data |
---|---|---|
d0e5f71f | 1 | #!/bin/sh |
66c36198 PM |
2 | ############################################################################### |
3 | # # | |
4 | # IPFire.org - A linux based firewall # | |
5 | # Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> # | |
6 | # # | |
7 | # This program is free software: you can redistribute it and/or modify # | |
8 | # it under the terms of the GNU General Public License as published by # | |
9 | # the Free Software Foundation, either version 3 of the License, or # | |
10 | # (at your option) any later version. # | |
11 | # # | |
12 | # This program is distributed in the hope that it will be useful, # | |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
15 | # GNU General Public License for more details. # | |
16 | # # | |
17 | # You should have received a copy of the GNU General Public License # | |
18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
19 | # # | |
20 | ############################################################################### | |
d0e5f71f ML |
21 | |
22 | . /etc/sysconfig/rc | |
23 | . ${rc_functions} | |
24 | ||
36792be6 MT |
25 | # Cache any local zones for 60 seconds |
26 | LOCAL_TTL=60 | |
27 | ||
ee90aa98 MT |
28 | # Load configuration |
29 | eval $(/usr/local/bin/readhash /var/ipfire/dns/settings) | |
4b26aac6 | 30 | eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings) |
d0e5f71f | 31 | |
f75c279b AF |
32 | ip_address_revptr() { |
33 | local addr=${1} | |
34 | ||
35 | local a1 a2 a3 a4 | |
36 | IFS=. read -r a1 a2 a3 a4 <<< ${addr} | |
37 | ||
38 | echo "${a4}.${a3}.${a2}.${a1}.in-addr.arpa" | |
39 | } | |
40 | ||
b8f5eda8 | 41 | read_name_servers() { |
2654c669 MT |
42 | # Read name servers from ISP |
43 | if [ "${USE_ISP_NAMESERVERS}" = "on" -a "${PROTO}" != "TLS" ]; then | |
44 | local i | |
45 | for i in 1 2; do | |
46 | echo "$(</var/run/dns${i})" | |
47 | done 2>/dev/null | |
48 | fi | |
49 | ||
50 | # Read configured name servers | |
51 | local id address tls_hostname enabled remark | |
52 | while IFS="," read -r id address tls_hostname enabled remark; do | |
53 | [ "${enabled}" != "enabled" ] && continue | |
54 | ||
55 | if [ "${PROTO}" = "TLS" ]; then | |
56 | if [ -n "${tls_hostname}" ]; then | |
57 | echo "${address}@853#${tls_hostname}" | |
58 | fi | |
59 | else | |
60 | echo "${address}" | |
61 | fi | |
62 | done < /var/ipfire/dns/servers | |
b8f5eda8 MT |
63 | } |
64 | ||
65 | config_header() { | |
66 | echo "# This file is automatically generated and any changes" | |
67 | echo "# will be overwritten. DO NOT EDIT!" | |
68 | echo | |
69 | } | |
70 | ||
6137797c MT |
71 | write_hosts_conf() { |
72 | ( | |
73 | config_header | |
f75c279b | 74 | |
6137797c MT |
75 | # Make own hostname resolveable |
76 | # 1.1.1.1 is reserved for unused green, skip this | |
77 | if [ -n "${GREEN_ADDRESS}" -a "${GREEN_ADDRESS}" != "1.1.1.1" ]; then | |
78 | echo "local-data: \"${HOSTNAME} ${LOCAL_TTL} IN A ${GREEN_ADDRESS}\"" | |
79 | fi | |
f59bc0c5 | 80 | |
6137797c MT |
81 | local address |
82 | for address in ${GREEN_ADDRESS} ${BLUE_ADDRESS} ${ORANGE_ADDRESS}; do | |
83 | [ -n "${address}" ] || continue | |
84 | [ "${address}" = "1.1.1.1" ] && continue | |
36792be6 | 85 | |
6137797c MT |
86 | address=$(ip_address_revptr ${address}) |
87 | echo "local-data: \"${address} ${LOCAL_TTL} IN PTR ${HOSTNAME}\"" | |
88 | done | |
36792be6 | 89 | |
6137797c | 90 | local enabled address hostname domainname generateptr |
1b6b8d97 MT |
91 | |
92 | # Find all unique domain names | |
93 | while IFS="," read -r enabled address hostname domainname generateptr; do | |
94 | [ "${enabled}" = "on" ] || continue | |
95 | ||
5947f92a MT |
96 | # Skip empty domainnames |
97 | [ "${domainname}" = "" ] && continue | |
98 | ||
2b113aeb | 99 | echo "local-zone: ${domainname} transparent" |
5947f92a | 100 | done < /var/ipfire/main/hosts | sort -u |
1b6b8d97 MT |
101 | |
102 | # Add all hosts | |
6137797c MT |
103 | while IFS="," read -r enabled address hostname domainname generateptr; do |
104 | [ "${enabled}" = "on" ] || continue | |
36792be6 | 105 | |
6137797c MT |
106 | # Build FQDN |
107 | local fqdn="${hostname}.${domainname}" | |
108 | echo "local-data: \"${fqdn} ${LOCAL_TTL} IN A ${address}\"" | |
f75c279b | 109 | |
6137797c MT |
110 | # Skip reverse resolution if the address equals the GREEN address |
111 | [ "${address}" = "${GREEN_ADDRESS}" ] && continue | |
868d2a1f | 112 | |
6137797c MT |
113 | # Skip reverse resolution if user requested not to do so |
114 | [ "${generateptr}" = "off" ] && continue | |
6874a576 | 115 | |
6137797c MT |
116 | # Add RDNS |
117 | address=$(ip_address_revptr ${address}) | |
118 | echo "local-data: \"${address} ${LOCAL_TTL} IN PTR ${fqdn}\"" | |
119 | done < /var/ipfire/main/hosts | |
120 | ) > /etc/unbound/hosts.conf | |
36792be6 MT |
121 | } |
122 | ||
b8f5eda8 MT |
123 | write_forward_conf() { |
124 | ( | |
125 | config_header | |
126 | ||
beebf925 MT |
127 | # Enable strict QNAME minimisation |
128 | if [ "${QNAME_MIN}" = "strict" ]; then | |
129 | echo "server:" | |
130 | echo " qname-minimisation-strict: yes" | |
131 | echo | |
132 | fi | |
133 | ||
974d8653 | 134 | # Force using TCP for upstream servers only |
ee90aa98 | 135 | if [ "${PROTO}" = "TCP" ]; then |
974d8653 MT |
136 | echo "# Force using TCP for upstream servers only" |
137 | echo "server:" | |
138 | echo " tcp-upstream: yes" | |
139 | echo | |
140 | fi | |
141 | ||
ee90aa98 | 142 | local insecure_zones="" |
a6dcc5bb | 143 | |
1ececb67 MT |
144 | local enabled zone server servers remark disable_dnssec rest |
145 | while IFS="," read -r enabled zone servers remark disable_dnssec rest; do | |
b8f5eda8 MT |
146 | # Line must be enabled. |
147 | [ "${enabled}" = "on" ] || continue | |
148 | ||
a6dcc5bb MT |
149 | # Zones that end with .local are commonly used for internal |
150 | # zones and therefore not signed | |
151 | case "${zone}" in | |
152 | *.local) | |
153 | insecure_zones="${insecure_zones} ${zone}" | |
154 | ;; | |
1ececb67 MT |
155 | *) |
156 | if [ "${disable_dnssec}" = "on" ]; then | |
157 | insecure_zones="${insecure_zones} ${zone}" | |
158 | fi | |
159 | ;; | |
a6dcc5bb MT |
160 | esac |
161 | ||
15cf79e3 MT |
162 | echo "stub-zone:" |
163 | echo " name: ${zone}" | |
164 | for server in ${servers//|/ }; do | |
165 | if [[ ${server} =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
166 | echo " stub-addr: ${server}" | |
167 | else | |
168 | echo " stub-host: ${server}" | |
169 | fi | |
170 | done | |
171 | echo | |
172 | ||
173 | # Make all reverse lookup zones transparent | |
c7e41255 MT |
174 | case "${zone}" in |
175 | *.in-addr.arpa) | |
c7e41255 | 176 | echo "server:" |
9f099932 | 177 | echo " local-zone: \"${zone}\" transparent" |
c7e41255 MT |
178 | echo |
179 | ;; | |
c7e41255 | 180 | esac |
b8f5eda8 | 181 | done < /var/ipfire/dnsforward/config |
a6dcc5bb MT |
182 | |
183 | if [ -n "${insecure_zones}" ]; then | |
184 | echo "server:" | |
185 | ||
186 | for zone in ${insecure_zones}; do | |
187 | echo " domain-insecure: ${zone}" | |
188 | done | |
189 | fi | |
50005ad1 | 190 | |
ab4ef40f SS |
191 | # Read name servers. |
192 | nameservers=$(read_name_servers) | |
50005ad1 | 193 | |
ab4ef40f SS |
194 | # Only write forward zones if any nameservers are configured. |
195 | # | |
196 | # Otherwise fall-back into recursor mode. | |
197 | if [ -n "${nameservers}" ]; then | |
198 | ||
199 | echo "forward-zone:" | |
200 | echo " name: \".\"" | |
201 | ||
202 | # Force using TLS only | |
203 | if [ "${PROTO}" = "TLS" ]; then | |
204 | echo " forward-tls-upstream: yes" | |
205 | fi | |
206 | ||
207 | # Add upstream name servers | |
208 | local ns | |
209 | for ns in ${nameservers}; do | |
210 | echo " forward-addr: ${ns}" | |
211 | done | |
50005ad1 MT |
212 | fi |
213 | ||
b8f5eda8 MT |
214 | ) > /etc/unbound/forward.conf |
215 | } | |
216 | ||
b658a451 MT |
217 | write_tuning_conf() { |
218 | # https://www.unbound.net/documentation/howto_optimise.html | |
219 | ||
b658a451 MT |
220 | # Determine amount of system memory |
221 | local mem=$(get_memory_amount) | |
222 | ||
223 | # In the worst case scenario, unbound can use double the | |
224 | # amount of memory allocated to a cache due to malloc overhead | |
225 | ||
4a0d69ca MT |
226 | # Even larger systems with more than 8GB of RAM |
227 | if [ ${mem} -ge 8192 ]; then | |
228 | mem=1024 | |
229 | ||
230 | # Extra large systems with more than 4GB of RAM | |
231 | elif [ ${mem} -ge 4096 ]; then | |
232 | mem=512 | |
233 | ||
b658a451 | 234 | # Large systems with more than 2GB of RAM |
4a0d69ca | 235 | elif [ ${mem} -ge 2048 ]; then |
128db1a3 | 236 | mem=256 |
b658a451 | 237 | |
4a0d69ca MT |
238 | # Medium systems with more than 1GB of RAM |
239 | elif [ ${mem} -ge 1024 ]; then | |
240 | mem=128 | |
241 | ||
b658a451 MT |
242 | # Small systems with less than 256MB of RAM |
243 | elif [ ${mem} -le 256 ]; then | |
128db1a3 | 244 | mem=16 |
b658a451 MT |
245 | |
246 | # Everything else | |
247 | else | |
128db1a3 | 248 | mem=64 |
b658a451 MT |
249 | fi |
250 | ||
251 | ( | |
252 | config_header | |
253 | ||
b658a451 MT |
254 | # Slice up the cache |
255 | echo "rrset-cache-size: $(( ${mem} / 2 ))m" | |
256 | echo "msg-cache-size: $(( ${mem} / 4 ))m" | |
257 | echo "key-cache-size: $(( ${mem} / 4 ))m" | |
0a7dca2c MT |
258 | |
259 | # Increase parallel queries | |
260 | echo "outgoing-range: 8192" | |
261 | echo "num-queries-per-thread: 4096" | |
c20b2009 MT |
262 | |
263 | # Use larger send/receive buffers | |
264 | echo "so-sndbuf: 4m" | |
265 | echo "so-rcvbuf: 4m" | |
b658a451 MT |
266 | ) > /etc/unbound/tuning.conf |
267 | } | |
268 | ||
269 | get_memory_amount() { | |
270 | local key val unit | |
271 | ||
272 | while read -r key val unit; do | |
273 | case "${key}" in | |
274 | MemTotal:*) | |
275 | # Convert to MB | |
276 | echo "$(( ${val} / 1024 ))" | |
277 | break | |
278 | ;; | |
279 | esac | |
280 | done < /proc/meminfo | |
281 | } | |
b8f5eda8 | 282 | |
a33489a7 MT |
283 | fix_time_if_dns_fails() { |
284 | # If DNS is working, everything is fine | |
cd26578f | 285 | if resolve "ipfire.pool.ntp.org" &>/dev/null; then |
a33489a7 | 286 | return 0 |
68fac98a | 287 | fi |
a33489a7 MT |
288 | |
289 | # Try to sync time with a known time server | |
290 | boot_mesg "DNS not functioning... Trying to sync time with ntp.ipfire.org (81.3.27.46)..." | |
291 | loadproc /usr/local/bin/settime 81.3.27.46 | |
68fac98a AF |
292 | } |
293 | ||
043e7aa5 MT |
294 | resolve() { |
295 | local hostname="${1}" | |
f5fe5f47 | 296 | local found=1 |
043e7aa5 | 297 | |
54898bc6 MT |
298 | local answer |
299 | for answer in $(dig +short A "${hostname}"); do | |
300 | # Filter out non-IP addresses | |
301 | if [[ ! "${answer}" =~ \.$ ]]; then | |
f5fe5f47 | 302 | found=0 |
54898bc6 MT |
303 | echo "${answer}" |
304 | fi | |
043e7aa5 | 305 | done |
f5fe5f47 AF |
306 | |
307 | return ${found} | |
043e7aa5 MT |
308 | } |
309 | ||
661ab153 | 310 | # Sets up Safe Search for various search engines |
d7190078 | 311 | update_safe_search() { |
661ab153 MT |
312 | local google_tlds=( |
313 | google.ad | |
314 | google.ae | |
315 | google.al | |
316 | google.am | |
317 | google.as | |
318 | google.at | |
319 | google.az | |
320 | google.ba | |
321 | google.be | |
322 | google.bf | |
323 | google.bg | |
324 | google.bi | |
325 | google.bj | |
326 | google.bs | |
327 | google.bt | |
328 | google.by | |
329 | google.ca | |
330 | google.cat | |
331 | google.cd | |
332 | google.cf | |
333 | google.cg | |
334 | google.ch | |
335 | google.ci | |
336 | google.cl | |
337 | google.cm | |
338 | google.cn | |
339 | google.co.ao | |
340 | google.co.bw | |
341 | google.co.ck | |
342 | google.co.cr | |
343 | google.co.id | |
344 | google.co.il | |
345 | google.co.in | |
346 | google.co.jp | |
347 | google.co.ke | |
348 | google.co.kr | |
349 | google.co.ls | |
350 | google.com | |
351 | google.co.ma | |
352 | google.com.af | |
353 | google.com.ag | |
354 | google.com.ai | |
355 | google.com.ar | |
356 | google.com.au | |
357 | google.com.bd | |
358 | google.com.bh | |
359 | google.com.bn | |
360 | google.com.bo | |
361 | google.com.br | |
362 | google.com.bz | |
363 | google.com.co | |
364 | google.com.cu | |
365 | google.com.cy | |
366 | google.com.do | |
367 | google.com.ec | |
368 | google.com.eg | |
369 | google.com.et | |
370 | google.com.fj | |
371 | google.com.gh | |
372 | google.com.gi | |
373 | google.com.gt | |
374 | google.com.hk | |
375 | google.com.jm | |
376 | google.com.kh | |
377 | google.com.kw | |
378 | google.com.lb | |
379 | google.com.ly | |
380 | google.com.mm | |
381 | google.com.mt | |
382 | google.com.mx | |
383 | google.com.my | |
384 | google.com.na | |
385 | google.com.nf | |
386 | google.com.ng | |
387 | google.com.ni | |
388 | google.com.np | |
389 | google.com.om | |
390 | google.com.pa | |
391 | google.com.pe | |
392 | google.com.pg | |
393 | google.com.ph | |
394 | google.com.pk | |
395 | google.com.pr | |
396 | google.com.py | |
397 | google.com.qa | |
398 | google.com.sa | |
399 | google.com.sb | |
400 | google.com.sg | |
401 | google.com.sl | |
402 | google.com.sv | |
403 | google.com.tj | |
404 | google.com.tr | |
405 | google.com.tw | |
406 | google.com.ua | |
407 | google.com.uy | |
408 | google.com.vc | |
409 | google.com.vn | |
410 | google.co.mz | |
411 | google.co.nz | |
412 | google.co.th | |
413 | google.co.tz | |
414 | google.co.ug | |
415 | google.co.uk | |
416 | google.co.uz | |
417 | google.co.ve | |
418 | google.co.vi | |
419 | google.co.za | |
420 | google.co.zm | |
421 | google.co.zw | |
422 | google.cv | |
423 | google.cz | |
424 | google.de | |
425 | google.dj | |
426 | google.dk | |
427 | google.dm | |
428 | google.dz | |
429 | google.ee | |
430 | google.es | |
431 | google.fi | |
432 | google.fm | |
433 | google.fr | |
434 | google.ga | |
435 | google.ge | |
436 | google.gg | |
437 | google.gl | |
438 | google.gm | |
439 | google.gp | |
440 | google.gr | |
441 | google.gy | |
442 | google.hn | |
443 | google.hr | |
444 | google.ht | |
445 | google.hu | |
446 | google.ie | |
447 | google.im | |
448 | google.iq | |
449 | google.is | |
450 | google.it | |
451 | google.je | |
452 | google.jo | |
453 | google.kg | |
454 | google.ki | |
455 | google.kz | |
456 | google.la | |
457 | google.li | |
458 | google.lk | |
459 | google.lt | |
460 | google.lu | |
461 | google.lv | |
462 | google.md | |
463 | google.me | |
464 | google.mg | |
465 | google.mk | |
466 | google.ml | |
467 | google.mn | |
468 | google.ms | |
469 | google.mu | |
470 | google.mv | |
471 | google.mw | |
472 | google.ne | |
473 | google.nl | |
474 | google.no | |
475 | google.nr | |
476 | google.nu | |
477 | google.pl | |
478 | google.pn | |
479 | google.ps | |
480 | google.pt | |
481 | google.ro | |
482 | google.rs | |
483 | google.ru | |
484 | google.rw | |
485 | google.sc | |
486 | google.se | |
487 | google.sh | |
488 | google.si | |
489 | google.sk | |
490 | google.sm | |
491 | google.sn | |
492 | google.so | |
493 | google.sr | |
494 | google.st | |
495 | google.td | |
496 | google.tg | |
497 | google.tk | |
498 | google.tl | |
499 | google.tm | |
500 | google.tn | |
501 | google.to | |
502 | google.tt | |
503 | google.vg | |
504 | google.vu | |
505 | google.ws | |
506 | ) | |
507 | ||
d7190078 MT |
508 | # Cleanup previous settings |
509 | unbound-control local_zone_remove "bing.com" >/dev/null | |
510 | unbound-control local_zone_remove "duckduckgo.com" >/dev/null | |
511 | unbound-control local_zone_remove "yandex.com" >/dev/null | |
512 | unbound-control local_zone_remove "yandex.ru" >/dev/null | |
513 | unbound-control local_zone_remove "youtube.com" >/dev/null | |
661ab153 | 514 | |
d7190078 MT |
515 | local domain |
516 | for domain in ${google_tlds[@]}; do | |
517 | unbound-control local_zone_remove "${domain}" | |
518 | done >/dev/null | |
661ab153 | 519 | |
65ef52a3 MT |
520 | if [ "${ENABLE_SAFE_SEARCH}" = "on" ]; then |
521 | # Bing | |
522 | unbound-control bing.com transparent >/dev/null | |
523 | for address in $(resolve "strict.bing.com"); do | |
524 | unbound-control local_data "www.bing.com ${LOCAL_TTL} IN A ${address}" | |
d7190078 | 525 | done >/dev/null |
661ab153 | 526 | |
65ef52a3 MT |
527 | # DuckDuckGo |
528 | unbound-control local_zone duckduckgo.com typetransparent >/dev/null | |
529 | for address in $(resolve "safe.duckduckgo.com"); do | |
530 | unbound-control local_data "duckduckgo.com ${LOCAL_TTL} IN A ${address}" | |
d7190078 | 531 | done >/dev/null |
661ab153 | 532 | |
65ef52a3 MT |
533 | |
534 | local addresses="$(resolve "forcesafesearch.google.com")" | |
535 | for domain in ${google_tlds[@]}; do | |
536 | unbound-control local_zone "${domain}" transparent >/dev/null | |
537 | for address in ${addresses}; do | |
538 | unbound-control local_data "www.${domain} ${LOCAL_TTL} IN A ${address}" | |
539 | done >/dev/null | |
540 | done | |
541 | ||
542 | # Yandex | |
543 | for domain in yandex.com yandex.ru; do | |
544 | unbound-control local_zone "${domain}" typetransparent >/dev/null | |
545 | for address in $(resolve "familysearch.${domain}"); do | |
546 | unbound-control local_data "${domain} ${LOCAL_TTL} IN A ${address}" | |
547 | done >/dev/null | |
548 | done | |
549 | ||
550 | # YouTube | |
551 | if [ "${ENABLE_SAFE_SEARCH_YOUTUBE}" = "on" ]; then | |
552 | unbound-control local_zone youtube.com transparent >/dev/null | |
553 | for address in $(resolve "restrictmoderate.youtube.com"); do | |
554 | unbound-control local_data "www.youtube.com ${LOCAL_TTL} IN A ${address}" | |
555 | done >/dev/null | |
556 | fi | |
557 | fi | |
f617fd91 | 558 | |
d7190078 | 559 | return 0 |
661ab153 MT |
560 | } |
561 | ||
d0e5f71f ML |
562 | case "$1" in |
563 | start) | |
80bc6022 MT |
564 | # Print a nicer messagen when unbound is already running |
565 | if pidofproc -s unbound; then | |
566 | statusproc /usr/sbin/unbound | |
567 | exit 0 | |
568 | fi | |
569 | ||
b8f5eda8 | 570 | # Update configuration files |
b658a451 | 571 | write_tuning_conf |
6137797c | 572 | write_hosts_conf |
b8f5eda8 MT |
573 | write_forward_conf |
574 | ||
575 | boot_mesg "Starting Unbound DNS Proxy..." | |
576 | loadproc /usr/sbin/unbound || exit $? | |
577 | ||
d7190078 MT |
578 | # Install Safe Search rules when the system is already online |
579 | if [ -e "/var/ipfire/red/active" ]; then | |
580 | update_safe_search | |
581 | fi | |
b8f5eda8 | 582 | ;; |
d0e5f71f ML |
583 | |
584 | stop) | |
b8f5eda8 MT |
585 | boot_mesg "Stopping Unbound DNS Proxy..." |
586 | killproc /usr/sbin/unbound | |
587 | ;; | |
d0e5f71f ML |
588 | |
589 | restart) | |
b8f5eda8 MT |
590 | $0 stop |
591 | sleep 1 | |
592 | $0 start | |
593 | ;; | |
3b5131c1 | 594 | reload|update-forwarders) |
0c109477 | 595 | # Update configuration files |
0c109477 | 596 | write_forward_conf |
6137797c | 597 | write_hosts_conf |
0c109477 | 598 | |
60557503 AF |
599 | # Call unbound-control and perform the reload |
600 | /usr/sbin/unbound-control -q reload | |
601 | ||
d98bbcc8 AF |
602 | # Dummy Resolve to wait for unbound |
603 | resolve "ping.ipfire.org" &>/dev/null | |
604 | ||
605 | if [ "$1" = "update-forwarders" ]; then | |
606 | # Make sure DNS works at this point | |
607 | fix_time_if_dns_fails | |
608 | fi | |
609 | ||
0c109477 SS |
610 | # Update Safe Search rules if the system is online. |
611 | if [ -e "/var/ipfire/red/active" ]; then | |
612 | update_safe_search | |
613 | fi | |
0c109477 | 614 | ;; |
d0e5f71f ML |
615 | |
616 | status) | |
b8f5eda8 | 617 | statusproc /usr/sbin/unbound |
b8f5eda8 MT |
618 | ;; |
619 | ||
043e7aa5 | 620 | resolve) |
f5fe5f47 | 621 | resolve "${2}" || exit $? |
043e7aa5 MT |
622 | ;; |
623 | ||
d0e5f71f | 624 | *) |
3b5131c1 | 625 | echo "Usage: $0 {start|stop|restart|reload|status|resolve|update-forwarders}" |
b8f5eda8 MT |
626 | exit 1 |
627 | ;; | |
d0e5f71f | 628 | esac |