]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - contrib/bind9/FAQ.xml
MFC: r253983-253984
[FreeBSD/stable/8.git] / contrib / bind9 / FAQ.xml
1 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2        "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" []>
3 <!--
4  - Copyright (C) 2004-2010, 2013  Internet Systems Consortium, Inc. ("ISC")
5  - Copyright (C) 2000-2003  Internet Software Consortium.
6  -
7  - Permission to use, copy, modify, and/or distribute this software for any
8  - purpose with or without fee is hereby granted, provided that the above
9  - copyright notice and this permission notice appear in all copies.
10  -
11  - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12  - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13  - AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14  - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15  - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16  - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  - PERFORMANCE OF THIS SOFTWARE.
18 -->
19
20 <!-- $Id: FAQ.xml,v 1.54 2010/01/19 23:48:55 tbox Exp $ -->
21
22 <article class="faq">
23   <title>Frequently Asked Questions about BIND 9</title>
24   <articleinfo>
25     <copyright>
26       <year>2004</year>
27       <year>2005</year>
28       <year>2006</year>
29       <year>2007</year>
30       <year>2008</year>
31       <year>2009</year>
32       <year>2010</year>
33       <year>2013</year>
34       <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
35     </copyright>
36     <copyright>
37       <year>2000</year>
38       <year>2001</year>
39       <year>2002</year>
40       <year>2003</year>
41       <holder>Internet Software Consortium.</holder>
42     </copyright>
43   </articleinfo>
44   <qandaset defaultlabel='qanda'>
45           
46     <qandadiv><title>Compilation and Installation Questions</title>       
47     
48     <qandaentry>
49       <question>
50         <para>
51           I'm trying to compile BIND 9, and "make" is failing due to
52           files not being found.  Why?
53         </para>
54       </question>
55       <answer>
56         <para>
57           Using a parallel or distributed "make" to build BIND 9 is
58           not supported, and doesn't work.  If you are using one of
59           these, use normal make or gmake instead.
60         </para>
61       </answer>
62     </qandaentry>
63     
64     <qandaentry>
65       <question>
66         <para>
67           Isn't "make install"  supposed to generate a default named.conf?
68         </para>
69       </question>
70       <answer>
71         <para>
72           Short Answer: No. 
73         </para>
74         <para>
75           Long Answer: There really isn't a default configuration which fits
76           any site perfectly.  There are lots of decisions that need to
77           be made and there is no consensus on what the defaults should be.
78           For example FreeBSD uses /etc/namedb as the location where the
79           configuration files for named are stored.  Others use /var/named.
80         </para>
81         <para>
82           What addresses to listen on?  For a laptop on the move a lot
83           you may only want to listen on the loop back interfaces.
84         </para>
85         <para>
86           Who do you offer recursive service to?  Is there are firewall
87           to consider?  If so is it stateless or stateful.  Are you
88           directly on the Internet?  Are you on a private network? Are
89           you on a NAT'd network? The answers
90           to all these questions change how you configure even a
91           caching name server.
92         </para>
93       </answer>
94     </qandaentry>
95     
96     </qandadiv> <!-- Compilation and Installation Questions -->
97             
98     <qandadiv><title>Configuration and Setup Questions</title>
99
100     <qandaentry>
101       <!-- configuration, log -->
102       <question>
103         <para>
104           Why does named log the warning message <quote>no TTL specified -
105           using SOA MINTTL instead</quote>?
106         </para>
107       </question>
108       <answer>
109         <para>
110           Your zone file is illegal according to RFC1035.  It must either
111           have a line like:
112         </para>
113         <informalexample>
114           <programlisting>
115 $TTL 86400</programlisting>
116         </informalexample>
117         <para>
118           at the beginning, or the first record in it must have a TTL field,
119           like the "84600" in this example:
120         </para>
121         <informalexample>
122           <programlisting>
123 example.com. 86400 IN SOA ns hostmaster ( 1 3600 1800 1814400 3600 )</programlisting>
124         </informalexample>
125       </answer>
126     </qandaentry>
127     
128     <qandaentry>
129       <!-- configuration -->
130       <question>
131         <para>
132           Why do I get errors like <quote>dns_zone_load: zone foo/IN: loading
133           master file bar: ran out of space</quote>?
134         </para>
135       </question>
136       <answer>
137         <para>
138         This is often caused by TXT records with missing close
139         quotes.  Check that all TXT records containing quoted strings
140         have both open and close quotes.
141         </para>
142       </answer>
143     </qandaentry>
144
145     <qandaentry>
146       <!-- security -->
147       <question>
148         <para>
149           How do I restrict people from looking up the server version?
150         </para>
151       </question>
152       <answer>
153         <para>
154           Put a "version" option containing something other than the
155           real version in the "options" section of named.conf.  Note
156           doing this will not prevent attacks and may impede people
157           trying to diagnose problems with your server.  Also it is
158           possible to "fingerprint" nameservers to determine their
159           version.
160         </para>
161       </answer>
162     </qandaentry>
163
164     <qandaentry>
165       <!-- security -->
166       <question>
167         <para>
168           How do I restrict only remote users from looking up the
169           server version?
170         </para>
171       </question>
172       <answer>
173         <para>
174           The following view statement will intercept lookups as the
175           internal view that holds the version information will be
176           matched last.  The caveats of the previous answer still
177           apply, of course.
178         </para>
179         <informalexample>
180           <programlisting>
181 view "chaos" chaos {
182         match-clients { &lt;those to be refused&gt;; };
183         allow-query { none; };
184         zone "." {
185                 type hint;
186                 file "/dev/null";  // or any empty file
187         };
188 };</programlisting>
189         </informalexample>
190       </answer>
191     </qandaentry>
192
193     <qandaentry>
194       <!-- configuration -->
195       <question>
196         <para>
197           What do <quote>no source of entropy found</quote> or <quote>could not
198           open entropy source foo</quote> mean?
199         </para>
200       </question>
201       <answer>
202         <para>
203           The server requires a source of entropy to perform certain
204           operations, mostly DNSSEC related.  These messages indicate
205           that you have no source of entropy.  On systems with
206           /dev/random or an equivalent, it is used by default.  A
207           source of entropy can also be defined using the random-device
208           option in named.conf.
209         </para>
210       </answer>
211     </qandaentry>
212
213     <qandaentry>
214       <!-- configuration -->
215       <question>
216         <para>
217           I'm trying to use TSIG to authenticate dynamic updates or
218           zone transfers.  I'm sure I have the keys set up correctly,
219           but the server is rejecting the TSIG.  Why?
220         </para>
221       </question>
222       <answer>
223         <para>
224           This may be a clock skew problem.  Check that the the clocks
225           on the client and server are properly synchronised (e.g.,
226           using ntp).
227         </para>
228       </answer>
229     </qandaentry>
230
231     <qandaentry>
232       <question>
233         <para>
234           I see a log message like the following.  Why?
235         </para>
236         <para>
237           couldn't open pid file '/var/run/named.pid': Permission denied
238         </para>
239       </question>
240       <answer>
241         <para>
242           You are most likely running named as a non-root user, and
243           that user does not have permission to write in /var/run.
244           The common ways of fixing this are to create a /var/run/named
245           directory owned by the named user and set pid-file to
246           "/var/run/named/named.pid", or set pid-file to "named.pid",
247           which will put the file in the directory specified by the
248           directory option (which, in this case, must be writable by
249           the named user).
250         </para>
251       </answer>
252     </qandaentry>
253     
254     <qandaentry>
255       <question>
256         <para>
257           I can query the nameserver from the nameserver but not from other
258           machines.  Why?
259         </para>
260       </question>
261       <answer>
262         <para>
263           This is usually the result of the firewall configuration stopping
264           the queries and / or the replies.
265         </para>
266       </answer>
267     </qandaentry>
268     
269     <qandaentry>
270       <question>
271         <para>
272           How can I make a server a slave for both an internal and
273           an external view at the same time?  When I tried, both views
274           on the slave were transferred from the same view on the master.
275         </para>
276       </question>
277       <answer>
278         <para>
279           You will need to give the master and slave multiple IP
280           addresses and use those to make sure you reach the correct
281           view on the other machine.
282         </para>
283         <informalexample>
284           <programlisting>
285 Master: 10.0.1.1 (internal), 10.0.1.2 (external, IP alias)
286     internal:
287         match-clients { !10.0.1.2; !10.0.1.4; 10.0.1/24; };
288                 notify-source 10.0.1.1;
289                 transfer-source 10.0.1.1;
290                 query-source address 10.0.1.1;
291     external:
292         match-clients { any; };
293         recursion no;   // don't offer recursion to the world
294         notify-source 10.0.1.2;
295         transfer-source 10.0.1.2;
296         query-source address 10.0.1.2;
297
298 Slave: 10.0.1.3 (internal), 10.0.1.4 (external, IP alias)
299     internal:
300         match-clients { !10.0.1.2; !10.0.1.4; 10.0.1/24; };
301         notify-source 10.0.1.3;
302         transfer-source 10.0.1.3;
303         query-source address 10.0.1.3;
304    external:
305         match-clients { any; };
306         recursion no;   // don't offer recursion to the world
307         notify-source 10.0.1.4;
308         transfer-source 10.0.1.4;
309         query-source address 10.0.1.4;</programlisting>
310         </informalexample>
311         <para>
312           You put the external address on the alias so that all the other
313           dns clients on these boxes see the internal view by default.
314         </para>
315       </answer>
316       <answer>
317         <para>
318           BIND 9.3 and later: Use TSIG to select the appropriate view.
319         </para>
320         <informalexample>
321           <programlisting>
322 Master 10.0.1.1:
323         key "external" {
324                 algorithm hmac-sha256;
325                 secret "xxxxxxxxxxxxxxxxxxxxxxxx";
326         };
327         view "internal" {
328                 match-clients { !key external; // reject message ment for the
329                                                // external view.
330                                 10.0.1/24; };  // accept from these addresses.
331                 ...
332         };
333         view "external" {
334                 match-clients { key external; any; };
335                 server 10.0.1.2 { keys external; };  // tag messages from the
336                                                      // external view to the
337                                                      // other servers for the
338                                                      // view.
339                 recursion no;
340                 ...
341         };
342
343 Slave 10.0.1.2:
344         key "external" {
345                 algorithm hmac-sha256;
346                 secret "xxxxxxxxxxxxxxxxxxxxxxxx";
347         };
348         view "internal" {
349                 match-clients { !key external; 10.0.1/24; };
350                 ...
351         };
352         view "external" {
353                 match-clients { key external; any; };
354                 server 10.0.1.1 { keys external; };
355                 recursion no;
356                 ...
357         };</programlisting>
358         </informalexample>
359       </answer>
360     </qandaentry>
361     
362     <qandaentry>
363       <question>
364         <para>
365           I get error messages like <quote>multiple RRs of singleton type</quote>
366           and <quote>CNAME and other data</quote> when transferring a zone.  What
367           does this mean?
368         </para>
369       </question>
370       <answer>
371         <para>
372           These indicate a malformed master zone.  You can identify
373           the exact records involved by transferring the zone using
374           dig then running named-checkzone on it.
375         </para>
376         <informalexample>
377           <programlisting>
378 dig axfr example.com @master-server &gt; tmp
379 named-checkzone example.com tmp</programlisting>
380         </informalexample>
381         <para>
382           A CNAME record cannot exist with the same name as another record
383           except for the DNSSEC records which prove its existence (NSEC).
384         </para>
385         <para>
386           RFC 1034, Section 3.6.2: <quote>If a CNAME RR is present at a node,
387           no other data should be present; this ensures that the data for a
388           canonical name and its aliases cannot be different.  This rule also
389           insures that a cached CNAME can be used without checking with an
390           authoritative server for other RR types.</quote>
391         </para>
392       </answer>
393     </qandaentry>
394     
395     <qandaentry>
396       <question>
397         <para>
398           I get error messages like <quote>named.conf:99: unexpected end
399           of input</quote> where 99 is the last line of named.conf.
400         </para>
401       </question>
402       <answer>
403         <para>
404           There are unbalanced quotes in named.conf.
405         </para>
406       </answer>
407       <answer>
408         <para>
409           Some text editors (notepad and wordpad) fail to put a line
410           title indication (e.g. CR/LF) on the last line of a
411           text file.  This can be fixed by "adding" a blank line to
412           the end of the file.  Named expects to see EOF immediately
413           after EOL and treats text files where this is not met as
414           truncated.
415         </para>
416       </answer>
417     </qandaentry>
418     
419     <qandaentry>
420       <question>
421         <para>
422           How do I share a dynamic zone between multiple views?
423         </para>
424       </question>
425       <answer>
426         <para>
427           You choose one view to be master and the second a slave and
428           transfer the zone between views.
429         </para>
430         <informalexample>
431           <programlisting>
432 Master 10.0.1.1:
433         key "external" {
434                 algorithm hmac-sha256;
435                 secret "xxxxxxxxxxxxxxxxxxxxxxxx";
436         };
437
438         key "mykey" {
439                 algorithm hmac-sha256;
440                 secret "yyyyyyyyyyyyyyyyyyyyyyyy";
441         };
442
443         view "internal" {
444                 match-clients { !key external; 10.0.1/24; };
445                 server 10.0.1.1 {
446                         /* Deliver notify messages to external view. */
447                         keys { external; };
448                 };
449                 zone "example.com" {
450                         type master;
451                         file "internal/example.db";
452                         allow-update { key mykey; };
453                         also-notify { 10.0.1.1; };
454                 };
455         };
456
457         view "external" {
458                 match-clients { key external; any; };
459                 zone "example.com" {
460                         type slave;
461                         file "external/example.db";
462                         masters { 10.0.1.1; };
463                         transfer-source 10.0.1.1;
464                         // allow-update-forwarding { any; };
465                         // allow-notify { ... };
466                 };
467         };</programlisting>
468         </informalexample>
469       </answer>
470     </qandaentry>
471
472     <qandaentry>
473       <question>
474         <para>
475           I get a error message like <quote>zone wireless.ietf56.ietf.org/IN:
476           loading master file primaries/wireless.ietf56.ietf.org: no
477           owner</quote>.
478         </para>
479       </question>
480       <answer>
481         <para>
482           This error is produced when a line in the master file
483           contains leading white space (tab/space) but the is no
484           current record owner name to inherit the name from.  Usually
485           this is the result of putting white space before a comment,
486           forgetting the "@" for the SOA record, or indenting the master
487           file.
488         </para>
489       </answer>
490     </qandaentry>
491
492     <qandaentry>
493       <question>
494         <para>
495           Why are my logs in GMT (UTC).
496         </para>
497       </question>
498       <answer>
499         <para>
500           You are running chrooted (-t) and have not supplied local timezone
501           information in the chroot area.
502         </para>
503         <simplelist>
504           <member>FreeBSD: /etc/localtime</member>
505           <member>Solaris: /etc/TIMEZONE and /usr/share/lib/zoneinfo</member>
506           <member>OSF: /etc/zoneinfo/localtime</member>
507           </simplelist>
508         <para>
509           See also tzset(3) and zic(8).
510         </para>
511       </answer>
512     </qandaentry>
513     
514     <qandaentry>
515       <question>
516         <para>
517           I get <quote>rndc: connect failed: connection refused</quote> when
518           I try to run rndc.
519         </para>
520       </question>
521       <answer>
522         <para>
523           This is usually a configuration error.
524         </para>
525         <para>
526           First ensure that named is running and no errors are being
527           reported at startup (/var/log/messages or equivalent).
528           Running "named -g &lt;usual arguments&gt;" from a title
529           can help at this point.
530         </para>
531         <para>
532           Secondly ensure that named is configured to use rndc either
533           by "rndc-confgen -a", rndc-confgen or manually.  The
534           Administrators Reference manual has details on how to do
535           this.
536         </para>
537         <para>
538           Old versions of rndc-confgen used localhost rather than
539           127.0.0.1 in /etc/rndc.conf for the default server.  Update
540           /etc/rndc.conf if necessary so that the default server
541           listed in /etc/rndc.conf matches the addresses used in
542           named.conf.  "localhost" has two address (127.0.0.1 and
543           ::1).
544         </para>
545         <para>
546           If you use "rndc-confgen -a" and named is running with -t or -u
547           ensure that /etc/rndc.conf has the correct ownership and that
548           a copy is in the chroot area.  You can do this by re-running
549           "rndc-confgen -a" with appropriate -t and -u arguments.
550         </para>
551       </answer>
552     </qandaentry>
553     
554     <qandaentry>
555       <question>
556         <para>
557           I get <quote>transfer of 'example.net/IN' from 192.168.4.12#53:
558           failed while receiving responses: permission denied</quote> error
559           messages.
560         </para>
561       </question>
562       <answer>
563         <para>
564           These indicate a filesystem permission error preventing
565           named creating / renaming the temporary file.  These will
566           usually also have other associated error messages like
567         </para>
568         <informalexample>
569           <programlisting>
570 "dumping master file: sl/tmp-XXXX5il3sQ: open: permission denied"</programlisting>
571         </informalexample>
572         <para>
573           Named needs write permission on the directory containing
574           the file.  Named writes the new cache file to a temporary
575           file then renames it to the name specified in named.conf
576           to ensure that the contents are always complete.  This is
577           to prevent named loading a partial zone in the event of
578           power failure or similar interrupting the write of the
579           master file.
580         </para>
581         <para>
582           Note file names are relative to the directory specified in
583           options and any chroot directory  ([&lt;chroot
584           dir&gt;/][&lt;options dir&gt;]).
585         </para>
586         <informalexample>
587           <para>
588             If named is invoked as "named -t /chroot/DNS" with
589             the following named.conf then "/chroot/DNS/var/named/sl"
590             needs to be writable by the user named is running as.
591           </para>
592           <programlisting>
593 options {
594         directory "/var/named";
595 };
596
597 zone "example.net" {
598         type slave;
599         file "sl/example.net";
600         masters { 192.168.4.12; };
601 };</programlisting>
602         </informalexample>
603       </answer>
604     </qandaentry>
605     
606     <qandaentry>
607       <question>
608         <para>
609           I want to forward all DNS queries from my caching nameserver to
610           another server. But there are some domains which have to be
611           served locally, via rbldnsd.
612         </para>
613         <para>
614           How do I achieve this ?
615         </para>
616       </question>
617       <answer>
618         <programlisting>
619 options {
620         forward only;
621         forwarders { &lt;ip.of.primary.nameserver&gt;; };
622 };
623
624 zone "sbl-xbl.spamhaus.org" {
625         type forward; forward only;
626         forwarders { &lt;ip.of.rbldns.server&gt; port 530; };
627 };
628
629 zone "list.dsbl.org" {
630         type forward; forward only;
631         forwarders { &lt;ip.of.rbldns.server&gt; port 530; };
632 };
633         </programlisting>
634       </answer>
635     </qandaentry>
636
637     <qandaentry>
638       <question>
639         <para>
640           Can you help me understand how BIND 9 uses memory to store
641           DNS zones?
642         </para>
643         <para>
644           Some times it seems to take several times the amount of
645           memory it needs to store the zone.
646         </para>
647       </question>
648       <answer>
649         <para>
650           When reloading a zone named my have multiple copies of
651           the zone in memory at one time.  The zone it is serving
652           and the one it is loading.  If reloads are ultra fast it
653           can have more still.
654         </para>
655         <para>
656           e.g.  Ones that are transferring out, the one that it is
657           serving and the one that is loading.
658         </para>
659         <para>
660           BIND 8 destroyed the zone before loading and also killed
661           off outgoing transfers of the zone.
662         </para>
663         <para>
664           The new strategy allows slaves to get copies of the new
665           zone regardless of how often the master is loaded compared
666           to the transfer time.  The slave might skip some intermediate
667           versions but the transfers will complete and it will keep
668           reasonably in sync with the master.
669         </para>
670         <para>
671           The new strategy also allows the master to recover from
672           syntax and other errors in the master file as it still
673           has an in-core copy of the old contents.
674         </para>
675       </answer>
676     </qandaentry>
677
678     <qandaentry>
679       <question>
680         <para>
681           I want to use IPv6 locally but I don't have a external IPv6
682           connection.  External lookups are slow.
683         </para>
684       </question>
685       <answer>
686         <para>
687           You can use server clauses to stop named making external lookups
688           over IPv6.
689         </para>
690         <programlisting>
691 server fd81:ec6c:bd62::/48 { bogus no; }; // site ULA prefix
692 server ::/0 { bogus yes; };
693 </programlisting>
694       </answer>
695     </qandaentry>
696     
697     </qandadiv> <!-- Configuration and Setup Questions -->
698     
699     <qandadiv><title>Operations Questions</title>
700
701     <qandaentry>
702       <question>
703         <para>
704           How to change the nameservers for a zone?
705         </para>
706       </question>
707       <answer>
708         <para>
709           Step 1: Ensure all nameservers, new and old, are serving the
710           same zone content.
711         </para>
712         <para>
713           Step 2: Work out the maximum TTL of the NS RRset in the parent and child
714           zones.  This is the time it will take caches to be clear of a
715           particular version of the NS RRset.
716           If you are just removing nameservers you can skip to Step 6.
717         </para>
718         <para>
719           Step 3: Add new nameservers to the NS RRset for the zone and
720           wait until all the servers for the zone are answering with this
721           new NS RRset.
722         </para>
723         <para>
724           Step 4: Inform the parent zone of the new NS RRset then wait for all the
725           parent servers to be answering with the new NS RRset.
726         </para>
727         <para>
728           Step 5: Wait for cache to be clear of the old NS RRset.
729           See Step 2 for how long.
730           If you are just adding nameservers you are done.
731         </para>
732         <para>
733           Step 6: Remove any old nameservers from the zones NS RRset and
734           wait for all the servers for the zone to be serving the new NS RRset.
735         </para>
736         <para>
737           Step 7: Inform the parent zone of the new NS RRset then wait for all the
738           parent servers to be answering with the new NS RRset.
739         </para>
740         <para>
741           Step 8: Wait for cache to be clear of the old NS RRset.
742           See Step 2 for how long.
743         </para>
744         <para>
745           Step 9: Turn off the old nameservers or remove the zone entry from
746           the configuration of the old nameservers.
747         </para>
748         <para>
749           Step 10: Increment the serial number and wait for the change to
750           be visible in all nameservers for the zone.  This ensures that
751           zone transfers are still working after the old servers are
752           decommissioned.
753         </para>
754         <para>
755           Note: the above procedure is designed to be transparent
756           to dns clients.  Decommissioning the old servers too early
757           will result in some clients not being able to look up
758           answers in the zone.
759         </para>
760         <para>
761           Note: while it is possible to run the addition and removal
762           stages together it is not recommended.
763         </para>
764       </answer>
765     </qandaentry>
766
767     </qandadiv> <!-- Operations Questions -->
768
769     <qandadiv><title>General Questions</title>
770             
771     <qandaentry>
772       <question>
773         <para>
774           I keep getting log messages like the following.  Why?
775         </para>
776         <para>
777           Dec  4 23:47:59 client 10.0.0.1#1355: updating zone
778           'example.com/IN': update failed: 'RRset exists (value
779           dependent)' prerequisite not satisfied (NXRRSET)
780         </para>
781       </question>
782       <answer>
783         <para>
784           DNS updates allow the update request to test to see if
785           certain conditions are met prior to proceeding with the
786           update.  The message above is saying that conditions were
787           not met and the update is not proceeding.  See doc/rfc/rfc2136.txt
788           for more details on prerequisites.
789         </para>
790       </answer>
791     </qandaentry>
792
793     <qandaentry>
794       <question>
795         <para>
796           I keep getting log messages like the following.  Why?
797         </para>
798         <para>
799           Jun 21 12:00:00.000 client 10.0.0.1#1234: update denied
800         </para>
801       </question>
802       <answer>
803         <para>
804           Someone is trying to update your DNS data using the RFC2136
805           Dynamic Update protocol.  Windows 2000 machines have a habit
806           of sending dynamic update requests to DNS servers without
807           being specifically configured to do so.  If the update
808           requests are coming from a Windows 2000 machine, see
809           <ulink
810            url="http://support.microsoft.com/support/kb/articles/q246/8/04.asp">
811   &lt;http://support.microsoft.com/support/kb/articles/q246/8/04.asp&gt;</ulink>
812           for information about how to turn them off.
813         </para>
814       </answer>
815     </qandaentry>
816             
817     <qandaentry>
818       <question>
819         <para>
820           When I do a "dig . ns", many of the A records for the root
821           servers are missing.  Why?
822         </para>
823       </question>
824       <answer>
825         <para>
826           This is normal and harmless.  It is a somewhat confusing
827           side effect of the way BIND 9 does RFC2181 trust ranking
828           and of the efforts BIND 9 makes to avoid promoting glue
829           into answers.
830         </para>
831         <para>
832          When BIND 9 first starts up and primes its cache, it receives
833          the root server addresses as additional data in an authoritative
834          response from a root server, and these records are eligible
835          for inclusion as additional data in responses.  Subsequently
836          it receives a subset of the root server addresses as
837          additional data in a non-authoritative (referral) response
838          from a root server.  This causes the addresses to now be
839          considered non-authoritative (glue) data, which is not
840          eligible for inclusion in responses.
841         </para>
842         <para>
843          The server does have a complete set of root server addresses
844          cached at all times, it just may not include all of them
845          as additional data, depending on whether they were last
846          received as answers or as glue.  You can always look up the
847          addresses with explicit queries like "dig a.root-servers.net A".
848         </para>
849       </answer>
850     </qandaentry>
851     
852     <qandaentry>
853       <question>
854         <para>
855           Why don't my zones reload when I do an "rndc reload" or SIGHUP?
856         </para>
857       </question>
858       <answer>
859         <para>
860           A zone can be updated either by editing zone files and
861           reloading the server or by dynamic update, but not both.
862           If you have enabled dynamic update for a zone using the
863           "allow-update" option, you are not supposed to edit the
864           zone file by hand, and the server will not attempt to reload
865           it.
866         </para>
867       </answer>
868     </qandaentry>
869     
870     <qandaentry>
871       <question>
872         <para>
873           Why is named listening on UDP port other than 53?
874         </para>
875       </question>
876       <answer>
877         <para>
878           Named uses a system selected port to make queries of other
879           nameservers.  This behaviour can be overridden by using
880           query-source to lock down the port and/or address.  See
881           also notify-source and transfer-source.
882         </para>
883       </answer>
884     </qandaentry>
885     
886     <qandaentry>
887       <question>
888         <para>
889           I get warning messages like <quote>zone example.com/IN: refresh:
890           failure trying master 1.2.3.4#53: timed out</quote>.
891         </para>
892       </question>
893       <answer>
894         <para>
895         Check that you can make UDP queries from the slave to the master
896         </para>
897         <informalexample>
898           <programlisting>
899 dig +norec example.com soa @1.2.3.4</programlisting>
900         </informalexample>
901         <para>
902           You could be generating queries faster than the slave can
903           cope with.  Lower the serial query rate.
904         </para>
905         <informalexample>
906           <programlisting>
907 serial-query-rate 5; // default 20</programlisting>
908         </informalexample>
909       </answer>
910     </qandaentry>
911
912     <qandaentry>            
913       <question>
914         <para>
915           I don't get RRSIG's returned when I use "dig +dnssec".
916         </para>
917       </question>
918       <answer>
919         <para>
920           You need to ensure DNSSEC is enabled (dnssec-enable yes;).
921         </para>
922       </answer>
923     </qandaentry>
924     
925     <qandaentry>
926       <question>
927         <para>
928           Can a NS record refer to a CNAME.
929         </para>
930       </question>
931       <answer>
932         <para>
933           No.  The rules for glue (copies of the *address* records
934           in the parent zones) and additional section processing do
935           not allow it to work.
936         </para>
937         <para>
938           You would have to add both the CNAME and address records
939           (A/AAAA) as glue to the parent zone and have CNAMEs be
940           followed when doing additional section processing to make
941           it work.  No nameserver implementation supports either of
942           these requirements.
943         </para>
944       </answer>
945     </qandaentry>
946
947     <qandaentry>
948       <question>
949         <para>
950           What does <quote>RFC 1918 response from Internet for
951           0.0.0.10.IN-ADDR.ARPA</quote> mean?
952         </para>
953       </question>
954       <answer>
955         <para>
956           If the IN-ADDR.ARPA name covered refers to a internal address
957           space you are using then you have failed to follow RFC 1918
958           usage rules and are leaking queries to the Internet.  You
959           should establish your own zones for these addresses to prevent
960           you querying the Internet's name servers for these addresses.
961           Please see <ulink url="http://as112.net/">&lt;http://as112.net/&gt;</ulink>
962           for details of the problems you are causing and the counter
963           measures that have had to be deployed.
964         </para>
965         <para>
966           If you are not using these private addresses then a client
967           has queried for them.  You can just ignore the messages,
968           get the offending client to stop sending you these messages
969           as they are most probably leaking them or setup your own zones
970           empty zones to serve answers to these queries.
971         </para>
972         <informalexample>
973           <programlisting>
974 zone "10.IN-ADDR.ARPA" {
975         type master;
976         file "empty";
977 };
978
979 zone "16.172.IN-ADDR.ARPA" {
980         type master;
981         file "empty";
982 };
983
984 ...
985
986 zone "31.172.IN-ADDR.ARPA" {
987         type master;
988         file "empty";
989 };
990
991 zone "168.192.IN-ADDR.ARPA" {
992         type master;
993         file "empty";
994 };
995
996 empty:
997 @ 10800 IN SOA &lt;name-of-server&gt;. &lt;contact-email&gt;. (
998                1 3600 1200 604800 10800 )
999 @ 10800 IN NS &lt;name-of-server&gt;.</programlisting>
1000         </informalexample>
1001         <para>
1002         <note>
1003           Future versions of named are likely to do this automatically.
1004         </note>
1005         </para>
1006       </answer>
1007     </qandaentry>
1008     
1009     <qandaentry>
1010       <question>
1011         <para>
1012           Will named be affected by the 2007 changes to daylight savings
1013           rules in the US.
1014         </para>
1015       </question>
1016       <answer>
1017         <para>
1018           No, so long as the machines internal clock (as reported
1019           by "date -u") remains at UTC.  The only visible change
1020           if you fail to upgrade your OS, if you are in a affected
1021           area, will be that log messages will be a hour out during
1022           the period where the old rules do not match the new rules.
1023         </para>
1024         <para>
1025           For most OS's this change just means that you need to
1026           update the conversion rules from UTC to local time.
1027           Normally this involves updating a file in /etc (which
1028           sets the default timezone for the machine) and possibly
1029           a directory which has all the conversion rules for the
1030           world (e.g. /usr/share/zoneinfo).  When updating the OS
1031           do not forget to update any chroot areas as well.
1032           See your OS's documentation for more details.
1033         </para>
1034         <para>
1035           The local timezone conversion rules can also be done on
1036           a individual basis by setting the TZ environment variable
1037           appropriately.  See your OS's documentation for more
1038           details.
1039         </para>
1040       </answer>
1041     </qandaentry>
1042
1043     <qandaentry>
1044       <question>
1045         <para>
1046           Is there a bugzilla (or other tool) database that mere
1047           mortals can have (read-only) access to for bind?
1048         </para>
1049       </question>
1050       <answer>
1051         <para>
1052           No.  The BIND 9 bug database is kept closed for a number
1053           of reasons.  These include, but are not limited to, that
1054           the database contains proprietory information from people
1055           reporting bugs.  The database has in the past and may in
1056           future contain unfixed bugs which are capable of bringing
1057           down most of the Internet's DNS infrastructure.
1058         </para>
1059         <para>
1060           The release pages for each version contain up to date
1061           lists of bugs that have been fixed post release.  That
1062           is as close as we can get to providing a bug database.
1063         </para>
1064       </answer>
1065     </qandaentry>
1066
1067     <qandaentry>
1068       <question>
1069         <para>
1070           Why do queries for NSEC3 records fail to return the NSEC3 record?
1071         </para>
1072       </question>
1073       <answer>
1074         <para>
1075           NSEC3 records are strictly meta data and can only be
1076           returned in the authority section.  This is done so that
1077           signing the zone using NSEC3 records does not bring names
1078           into existence that do not exist in the unsigned version
1079           of the zone.
1080         </para>
1081       </answer>
1082     </qandaentry>
1083
1084     </qandadiv> <!-- General Questions -->
1085     
1086     <qandadiv><title>Operating-System Specific Questions</title>
1087             
1088     <qandadiv><title>HPUX</title>
1089
1090     <qandaentry>
1091       <question>
1092         <para>I get the following error trying to configure BIND:
1093 <programlisting>checking if unistd.h or sys/types.h defines fd_set... no
1094 configure: error: need either working unistd.h or sys/select.h</programlisting>
1095         </para>
1096       </question>
1097       <answer>
1098         <para>
1099           You have attempted to configure BIND with the bundled C compiler.
1100           This compiler does not meet the minimum compiler requirements to
1101           for building BIND.  You need to install a ANSI C compiler and / or
1102           teach configure how to find the ANSI C compiler.  The later can
1103           be done by adjusting the PATH environment variable and / or
1104           specifying the compiler via CC.
1105         </para>
1106         <informalexample>
1107           <programlisting>./configure CC=&lt;compiler&gt; ...</programlisting>
1108         </informalexample>
1109       </answer>
1110     </qandaentry>
1111
1112     </qandadiv> <!-- HPUX -->
1113
1114     <qandadiv><title>Linux</title>
1115             
1116     <qandaentry>
1117       <question> 
1118         <para>
1119           Why do I get the following errors:
1120 <programlisting>general: errno2result.c:109: unexpected error:
1121 general: unable to convert errno to isc_result: 14: Bad address
1122 client: UDP client handler shutting down due to fatal receive error: unexpected error</programlisting>
1123         </para>
1124       </question>
1125       <answer>
1126         <para>
1127           This is the result of a Linux kernel bug.
1128         </para>
1129         <para>
1130           See:
1131           <ulink url="http://marc.theaimsgroup.com/?l=linux-netdev&amp;m=113081708031466&amp;w=2">&lt;http://marc.theaimsgroup.com/?l=linux-netdev&amp;m=113081708031466&amp;w=2&gt;</ulink>
1132         </para>
1133       </answer>
1134     </qandaentry>
1135
1136     <qandaentry>
1137       <question>
1138         <para>
1139           Why does named lock up when it attempts to connect over IPSEC tunnels?
1140         </para>
1141       </question>
1142       <answer>
1143         <para>
1144           This is due to a kernel bug where the fact that a socket is marked
1145           non-blocking is ignored.  It is reported that setting
1146           xfrm_larval_drop to 1 helps but this may have negative side effects.
1147           See:
1148 <ulink url="https://bugzilla.redhat.com/show_bug.cgi?id=427629">&lt;https://bugzilla.redhat.com/show_bug.cgi?id=427629&gt;</ulink>
1149           and
1150 <ulink url="http://lkml.org/lkml/2007/12/4/260">&lt;http://lkml.org/lkml/2007/12/4/260&gt;</ulink>.
1151         </para>
1152         <para>
1153         xfrm_larval_drop can be set to 1 by the following procedure:
1154 <programlisting>
1155 echo "1" &gt; proc/sys/net/core/xfrm_larval_drop</programlisting>
1156         </para>
1157       </answer>
1158     </qandaentry>
1159
1160     <qandaentry>
1161       <question>
1162         <para>
1163           Why do I see 5 (or more) copies of named on Linux?
1164         </para>
1165       </question>
1166       <answer>
1167         <para>
1168           Linux threads each show up as a process under ps.  The
1169           approximate number of threads running is n+4, where n is
1170           the number of CPUs.  Note that the amount of memory used
1171           is not cumulative; if each process is using 10M of memory,
1172           only a total of 10M is used.
1173         </para>
1174         <para>
1175           Newer versions of Linux's ps command hide the individual threads
1176           and require -L to display them.
1177         </para>
1178       </answer>
1179     </qandaentry>
1180     
1181     <qandaentry>
1182       <question>
1183         <para>
1184           Why does BIND 9 log <quote>permission denied</quote> errors accessing
1185           its configuration files or zones on my Linux system even
1186           though it is running as root?
1187         </para>
1188       </question>
1189       <answer>
1190         <para>
1191           On Linux, BIND 9 drops most of its root privileges on
1192           startup.  This including the privilege to open files owned
1193           by other users.  Therefore, if the server is running as
1194           root, the configuration files and zone files should also
1195           be owned by root.
1196         </para>
1197       </answer>
1198     </qandaentry>
1199     
1200     <qandaentry>
1201       <question>
1202         <para>
1203           I get the error message <quote>named: capset failed: Operation
1204           not permitted</quote> when starting named.
1205         </para>
1206       </question>
1207       <answer>
1208         <para>
1209           The capability module, part of "Linux Security Modules/LSM",
1210           has not been loaded into the kernel.  See insmod(8), modprobe(8).
1211         </para>
1212         <para>
1213           The relevant modules can be loaded by running:
1214 <programlisting>
1215 modprobe commoncap
1216 modprobe capability</programlisting>
1217         </para>
1218       </answer>
1219     </qandaentry>
1220     
1221     <qandaentry>
1222       <question>
1223         <para>
1224            I'm running BIND on Red Hat Enterprise Linux or Fedora Core -
1225         </para>
1226         <para>
1227           Why can't named update slave zone database files?
1228         </para>
1229         <para>
1230           Why can't named create DDNS journal files or update
1231           the master zones from journals?
1232         </para>
1233         <para>
1234           Why can't named create custom log files?
1235         </para>
1236       </question>
1237
1238       <answer>
1239         <para>
1240           Red Hat Security Enhanced Linux (SELinux) policy security
1241           protections :
1242         </para>
1243
1244         <para>
1245            Red Hat have adopted the National Security Agency's
1246            SELinux security policy (see <ulink
1247    url="http://www.nsa.gov/selinux">&lt;http://www.nsa.gov/selinux&gt;</ulink>)
1248            and recommendations for BIND security , which are more
1249            secure than running named in a chroot and make use of
1250            the bind-chroot environment unnecessary .
1251         </para>
1252
1253         <para>
1254           By default, named is not allowed by the SELinux policy
1255           to write, create or delete any files EXCEPT in these
1256           directories:
1257           <informalexample>
1258             <programlisting>
1259 $ROOTDIR/var/named/slaves
1260 $ROOTDIR/var/named/data
1261 $ROOTDIR/var/tmp
1262             </programlisting>
1263           </informalexample>
1264           where $ROOTDIR may be set in /etc/sysconfig/named if
1265           bind-chroot is installed.
1266         </para>
1267
1268         <para>
1269           The SELinux policy particularly does NOT allow named to modify
1270           the $ROOTDIR/var/named directory, the default location for master
1271           zone database files.
1272         </para>
1273
1274         <para>
1275           SELinux policy overrules file access permissions - so
1276           even if all the files under /var/named have ownership
1277           named:named and mode rw-rw-r--, named will still not be
1278           able to write or create files except in the directories
1279           above, with SELinux in Enforcing mode.
1280         </para>
1281   
1282         <para>
1283           So, to allow named to update slave or DDNS zone files,
1284           it is best to locate them in $ROOTDIR/var/named/slaves,
1285           with named.conf zone statements such as:
1286           <informalexample>
1287             <programlisting>
1288 zone "slave.zone." IN {
1289         type slave;
1290         file "slaves/slave.zone.db";
1291         ...
1292 };   
1293 zone "ddns.zone." IN  {
1294         type master;
1295         allow-updates {...};
1296         file "slaves/ddns.zone.db";
1297 };
1298             </programlisting>
1299           </informalexample>
1300         </para>
1301
1302         <para>
1303           To allow named to create its cache dump and statistics
1304           files, for example, you could use named.conf options
1305           statements such as:
1306           <informalexample>
1307             <programlisting>
1308 options {
1309         ...
1310         dump-file "/var/named/data/cache_dump.db";
1311         statistics-file "/var/named/data/named_stats.txt";
1312         ...
1313 };
1314             </programlisting>
1315           </informalexample>
1316         </para>
1317
1318         <para>
1319           You can also tell SELinux to allow named to update any
1320           zone database files, by setting the SELinux tunable boolean
1321           parameter 'named_write_master_zones=1', using the
1322           system-config-securitylevel GUI, using the 'setsebool'
1323           command, or in /etc/selinux/targeted/booleans.
1324         </para>
1325   
1326         <para>
1327           You can disable SELinux protection for named entirely by
1328           setting the 'named_disable_trans=1' SELinux tunable boolean
1329           parameter.
1330         </para>
1331     
1332         <para>
1333           The SELinux named policy defines these SELinux contexts for named:
1334           <informalexample>
1335             <programlisting>
1336 named_zone_t : for zone database files       - $ROOTDIR/var/named/*
1337 named_conf_t : for named configuration files - $ROOTDIR/etc/{named,rndc}.*
1338 named_cache_t: for files modifiable by named - $ROOTDIR/var/{tmp,named/{slaves,data}}
1339             </programlisting>
1340           </informalexample>
1341         </para>
1342    
1343         <para>
1344           If you want to retain use of the SELinux policy for named,
1345           and put named files in different locations, you can do
1346           so by changing the context of the custom file locations
1347           .
1348         </para>
1349
1350         <para>
1351           To create a custom configuration file location, e.g.
1352           '/root/named.conf', to use with the 'named -c' option,
1353           do:
1354           <informalexample>
1355             <programlisting>
1356 # chcon system_u:object_r:named_conf_t /root/named.conf
1357             </programlisting>
1358           </informalexample>
1359         </para>
1360   
1361         <para>
1362           To create a custom modifiable named data location, e.g.
1363           '/var/log/named' for a log file, do:
1364           <informalexample>
1365             <programlisting>
1366 # chcon system_u:object_r:named_cache_t /var/log/named
1367             </programlisting>
1368           </informalexample>
1369         </para>
1370    
1371         <para>
1372    To create a custom zone file location, e.g. /root/zones/, do:
1373           <informalexample>
1374             <programlisting>
1375 # chcon system_u:object_r:named_zone_t /root/zones/{.,*}
1376             </programlisting>
1377           </informalexample>
1378         </para>
1379   
1380         <para>
1381           See these man-pages for more information : selinux(8),
1382           named_selinux(8), chcon(1), setsebool(8)
1383         </para>
1384       </answer>
1385     </qandaentry>
1386
1387     <qandaentry>
1388       <question>
1389         <para>
1390            I'm running BIND on Ubuntu -
1391         </para>
1392         <para>
1393           Why can't named update slave zone database files?
1394         </para>
1395         <para>
1396           Why can't named create DDNS journal files or update
1397           the master zones from journals?
1398         </para>
1399         <para>
1400           Why can't named create custom log files?
1401         </para>
1402       </question>
1403       <answer>
1404         <para>
1405           Ubuntu uses AppArmor <ulink url="http://en.wikipedia.org/wiki/AppArmor">
1406           &lt;http://en.wikipedia.org/wiki/AppArmor&gt;</ulink> in
1407           addition to normal file system permissions to protect the system.
1408         </para>
1409         <para>
1410           Adjust the paths to use those specified in /etc/apparmor.d/usr.sbin.named
1411           or adjust /etc/apparmor.d/usr.sbin.named to allow named to write at the
1412           location specified in named.conf.
1413         </para>
1414       </answer>
1415     </qandaentry>
1416
1417     <qandaentry>
1418       <question>
1419         <para>
1420           Listening on individual IPv6 interfaces does not work.
1421         </para>
1422       </question>
1423       <answer>
1424         <para>
1425           This is usually due to "/proc/net/if_inet6" not being available
1426           in the chroot file system.  Mount another instance of "proc"
1427           in the chroot file system.
1428         </para>
1429         <para>
1430           This can be be made permanent by adding a second instance to
1431           /etc/fstab.
1432           <informalexample>
1433             <programlisting>
1434 proc /proc           proc defaults 0 0
1435 proc /var/named/proc proc defaults 0 0</programlisting>
1436           </informalexample>
1437         </para>
1438       </answer>
1439     </qandaentry>
1440     
1441     </qandadiv> <!-- Linux -->
1442     
1443     <qandadiv><title>Windows</title>
1444             
1445     <qandaentry>
1446       <question>
1447         <para>
1448           Zone transfers from my BIND 9 master to my Windows 2000
1449           slave fail.  Why?
1450         </para>
1451       </question>
1452       <answer>
1453         <para>
1454           This may be caused by a bug in the Windows 2000 DNS server
1455           where DNS messages larger than 16K are not handled properly.
1456           This can be worked around by setting the option "transfer-format
1457           one-answer;".  Also check whether your zone contains domain
1458           names with embedded spaces or other special characters,
1459           like "John\032Doe\213s\032Computer", since such names have
1460           been known to cause Windows 2000 slaves to incorrectly
1461           reject the zone.
1462         </para>
1463       </answer>
1464     </qandaentry>
1465     
1466     <qandaentry>
1467       <question>
1468         <para>
1469           I get <quote>Error 1067</quote> when starting named under Windows.
1470         </para>
1471       </question>
1472       <answer>
1473         <para>
1474           This is the service manager saying that named exited.   You
1475           need to examine the Application log in the EventViewer to
1476           find out why.
1477         </para>
1478         <para>
1479           Common causes are that you failed to create "named.conf"
1480           (usually "C:\windows\dns\etc\named.conf") or failed to
1481           specify the directory in named.conf.
1482         </para>
1483         <informalexample>
1484           <programlisting>
1485 options {
1486         Directory "C:\windows\dns\etc";
1487 };</programlisting>
1488         </informalexample>
1489       </answer>
1490     </qandaentry>
1491             
1492     </qandadiv> <!-- Windows -->
1493     
1494     <qandadiv><title>FreeBSD</title>
1495             
1496     <qandaentry>
1497       <question>
1498         <para>
1499           I have FreeBSD 4.x and "rndc-confgen -a" just sits there.
1500         </para>
1501       </question>
1502       <answer>
1503         <para>
1504           /dev/random is not configured.  Use rndcontrol(8) to tell
1505           the kernel to use certain interrupts as a source of random
1506           events.  You can make this permanent by setting rand_irqs
1507           in /etc/rc.conf.
1508         </para>
1509         <informalexample>
1510           <programlisting>
1511 rand_irqs="3 14 15"</programlisting>
1512         </informalexample>
1513         <para>
1514           See also
1515           <ulink url="http://people.freebsd.org/~dougb/randomness.html">
1516           &lt;http://people.freebsd.org/~dougb/randomness.html&gt;</ulink>.
1517         </para>
1518       </answer>
1519     </qandaentry>
1520     
1521     </qandadiv> <!-- FreeBSD -->
1522     
1523     <qandadiv><title>Solaris</title>
1524             
1525     <qandaentry>
1526       <question>
1527         <para>
1528           How do I integrate BIND 9 and Solaris SMF
1529         </para>
1530       </question>
1531       <answer>
1532         <para>
1533           Sun has a blog entry describing how to do this.
1534         </para>
1535         <para>
1536           <ulink
1537           url="http://blogs.sun.com/roller/page/anay/Weblog?catname=%2FSolaris">
1538          &lt;http://blogs.sun.com/roller/page/anay/Weblog?catname=%2FSolaris&gt;
1539           </ulink>
1540         </para>
1541       </answer>
1542     </qandaentry>
1543     
1544     </qandadiv>
1545
1546     <qandadiv><title>Apple Mac OS X</title>
1547
1548     <qandaentry>
1549       <question>
1550         <para>
1551           How do I run BIND 9 on Apple Mac OS X?
1552         </para>
1553       </question>
1554       <answer>
1555         <para>
1556          If you run Tiger(Mac OS 10.4) or later then this is all you need to do:
1557         </para>
1558         <informalexample>
1559           <programlisting>
1560 % sudo rndc-confgen  > /etc/rndc.conf</programlisting>
1561         </informalexample>
1562         <para>
1563           Copy the key statement from /etc/rndc.conf into /etc/rndc.key, e.g.:
1564         </para>
1565         <informalexample>
1566           <programlisting>
1567 key "rndc-key" {
1568         algorithm hmac-sha256;
1569         secret "uvceheVuqf17ZwIcTydddw==";
1570 };</programlisting>
1571         </informalexample>
1572         <para>
1573           Then start the relevant service:
1574         </para>
1575         <informalexample>
1576           <programlisting>
1577 % sudo service org.isc.named start</programlisting>
1578         </informalexample>
1579         <para>
1580           This is persistent upon a reboot, so you will have to do it only once.
1581         </para>
1582       </answer>
1583
1584       <answer>
1585         <para>
1586          Alternatively you can just generate /etc/rndc.key by running:
1587         </para>
1588         <informalexample>
1589           <programlisting>
1590 % sudo rndc-confgen -a</programlisting>
1591         </informalexample>
1592         <para>
1593           Then start the relevant service:
1594         </para>
1595         <informalexample>
1596           <programlisting>
1597 % sudo service org.isc.named start</programlisting>
1598         </informalexample>
1599         <para>
1600           Named will look for /etc/rndc.key when it starts if it
1601           doesn't have a controls section or the existing controls are
1602           missing keys sub-clauses.  This is persistent upon a
1603           reboot, so you will have to do it only once.
1604         </para>
1605       </answer>
1606     </qandaentry>
1607
1608     </qandadiv>
1609     
1610     </qandadiv> <!-- Operating-System Specific Questions -->
1611
1612   </qandaset>
1613 </article>