]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/bind9/FAQ.xml
Define USB_FS_OPEN_STREAM, even if not supported.
[FreeBSD/stable/9.git] / contrib / bind9 / FAQ.xml
1 <!--
2  - Copyright (C) 2004-2010, 2013-2016  Internet Systems Consortium, Inc. ("ISC")
3  - Copyright (C) 2000-2003  Internet Software Consortium.
4  -
5  - Permission to use, copy, modify, and/or distribute this software for any
6  - purpose with or without fee is hereby granted, provided that the above
7  - copyright notice and this permission notice appear in all copies.
8  -
9  - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10  - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11  - AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12  - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13  - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14  - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15  - PERFORMANCE OF THIS SOFTWARE.
16 -->
17
18 <!-- Converted by db4-upgrade version 1.0 -->
19 <article xmlns="http://docbook.org/ns/docbook" version="5.0" class="faq">
20
21   <articleinfo>
22     <copyright>
23       <year>2004</year>
24       <year>2005</year>
25       <year>2006</year>
26       <year>2007</year>
27       <year>2008</year>
28       <year>2009</year>
29       <year>2010</year>
30       <year>2013</year>
31       <year>2014</year>
32       <year>2015</year>
33       <year>2016</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           To whom do you offer recursive service?  Is there a 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 synchronized (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 user named is running as).
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 there 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 type="vert">
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           <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://support.microsoft.com/support/kb/articles/q246/8/04.asp">
810   &lt;http://support.microsoft.com/support/kb/articles/q246/8/04.asp&gt;</link>
811           for information about how to turn them off.
812         </para>
813       </answer>
814     </qandaentry>
815
816     <qandaentry>
817       <question>
818         <para>
819           When I do a "dig . ns", many of the A records for the root
820           servers are missing.  Why?
821         </para>
822       </question>
823       <answer>
824         <para>
825           This is normal and harmless.  It is a somewhat confusing
826           side effect of the way BIND 9 does RFC2181 trust ranking
827           and of the efforts BIND 9 makes to avoid promoting glue
828           into answers.
829         </para>
830         <para>
831          When BIND 9 first starts up and primes its cache, it receives
832          the root server addresses as additional data in an authoritative
833          response from a root server, and these records are eligible
834          for inclusion as additional data in responses.  Subsequently
835          it receives a subset of the root server addresses as
836          additional data in a non-authoritative (referral) response
837          from a root server.  This causes the addresses to now be
838          considered non-authoritative (glue) data, which is not
839          eligible for inclusion in responses.
840         </para>
841         <para>
842          The server does have a complete set of root server addresses
843          cached at all times, it just may not include all of them
844          as additional data, depending on whether they were last
845          received as answers or as glue.  You can always look up the
846          addresses with explicit queries like "dig a.root-servers.net A".
847         </para>
848       </answer>
849     </qandaentry>
850
851     <qandaentry>
852       <question>
853         <para>
854           Why don't my zones reload when I do an "rndc reload" or SIGHUP?
855         </para>
856       </question>
857       <answer>
858         <para>
859           A zone can be updated either by editing zone files and
860           reloading the server or by dynamic update, but not both.
861           If you have enabled dynamic update for a zone using the
862           "allow-update" option, you are not supposed to edit the
863           zone file by hand, and the server will not attempt to reload
864           it.
865         </para>
866       </answer>
867     </qandaentry>
868
869     <qandaentry>
870       <question>
871         <para>
872           Why is named listening on UDP port other than 53?
873         </para>
874       </question>
875       <answer>
876         <para>
877           Named uses a system selected port to make queries of other
878           nameservers.  This behaviour can be overridden by using
879           query-source to lock down the port and/or address.  See
880           also notify-source and transfer-source.
881         </para>
882       </answer>
883     </qandaentry>
884
885     <qandaentry>
886       <question>
887         <para>
888           I get warning messages like <quote>zone example.com/IN: refresh:
889           failure trying master 1.2.3.4#53: timed out</quote>.
890         </para>
891       </question>
892       <answer>
893         <para>
894         Check that you can make UDP queries from the slave to the master
895         </para>
896         <informalexample>
897           <programlisting>
898 dig +norec example.com soa @1.2.3.4</programlisting>
899         </informalexample>
900         <para>
901           You could be generating queries faster than the slave can
902           cope with.  Lower the serial query rate.
903         </para>
904         <informalexample>
905           <programlisting>
906 serial-query-rate 5; // default 20</programlisting>
907         </informalexample>
908       </answer>
909     </qandaentry>
910
911     <qandaentry>
912       <question>
913         <para>
914           I don't get RRSIG's returned when I use "dig +dnssec".
915         </para>
916       </question>
917       <answer>
918         <para>
919           You need to ensure DNSSEC is enabled (dnssec-enable yes;).
920         </para>
921       </answer>
922     </qandaentry>
923
924     <qandaentry>
925       <question>
926         <para>
927           Can a NS record refer to a CNAME.
928         </para>
929       </question>
930       <answer>
931         <para>
932           No.  The rules for glue (copies of the *address* records
933           in the parent zones) and additional section processing do
934           not allow it to work.
935         </para>
936         <para>
937           You would have to add both the CNAME and address records
938           (A/AAAA) as glue to the parent zone and have CNAMEs be
939           followed when doing additional section processing to make
940           it work.  No nameserver implementation supports either of
941           these requirements.
942         </para>
943       </answer>
944     </qandaentry>
945
946     <qandaentry>
947       <question>
948         <para>
949           What does <quote>RFC 1918 response from Internet for
950           0.0.0.10.IN-ADDR.ARPA</quote> mean?
951         </para>
952       </question>
953       <answer>
954         <para>
955           If the IN-ADDR.ARPA name covered refers to a internal address
956           space you are using then you have failed to follow RFC 1918
957           usage rules and are leaking queries to the Internet.  You
958           should establish your own zones for these addresses to prevent
959           you querying the Internet's name servers for these addresses.
960           Please see <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://as112.net/">&lt;http://as112.net/&gt;</link>
961           for details of the problems you are causing and the counter
962           measures that have had to be deployed.
963         </para>
964         <para>
965           If you are not using these private addresses then a client
966           has queried for them.  You can just ignore the messages,
967           get the offending client to stop sending you these messages
968           as they are most probably leaking them or setup your own zones
969           empty zones to serve answers to these queries.
970         </para>
971         <informalexample>
972           <programlisting>
973 zone "10.IN-ADDR.ARPA" {
974         type master;
975         file "empty";
976 };
977
978 zone "16.172.IN-ADDR.ARPA" {
979         type master;
980         file "empty";
981 };
982
983 ...
984
985 zone "31.172.IN-ADDR.ARPA" {
986         type master;
987         file "empty";
988 };
989
990 zone "168.192.IN-ADDR.ARPA" {
991         type master;
992         file "empty";
993 };
994
995 empty:
996 @ 10800 IN SOA &lt;name-of-server&gt;. &lt;contact-email&gt;. (
997                1 3600 1200 604800 10800 )
998 @ 10800 IN NS &lt;name-of-server&gt;.</programlisting>
999         </informalexample>
1000         <para>
1001         <note>
1002           Future versions of named are likely to do this automatically.
1003         </note>
1004         </para>
1005       </answer>
1006     </qandaentry>
1007
1008     <qandaentry>
1009       <question>
1010         <para>
1011           Will named be affected by the 2007 changes to daylight savings
1012           rules in the US.
1013         </para>
1014       </question>
1015       <answer>
1016         <para>
1017           No, so long as the machines internal clock (as reported
1018           by "date -u") remains at UTC.  The only visible change
1019           if you fail to upgrade your OS, if you are in a affected
1020           area, will be that log messages will be a hour out during
1021           the period where the old rules do not match the new rules.
1022         </para>
1023         <para>
1024           For most OS's this change just means that you need to
1025           update the conversion rules from UTC to local time.
1026           Normally this involves updating a file in /etc (which
1027           sets the default timezone for the machine) and possibly
1028           a directory which has all the conversion rules for the
1029           world (e.g. /usr/share/zoneinfo).  When updating the OS
1030           do not forget to update any chroot areas as well.
1031           See your OS's documentation for more details.
1032         </para>
1033         <para>
1034           The local timezone conversion rules can also be done on
1035           a individual basis by setting the TZ environment variable
1036           appropriately.  See your OS's documentation for more
1037           details.
1038         </para>
1039       </answer>
1040     </qandaentry>
1041
1042     <qandaentry>
1043       <question>
1044         <para>
1045           Is there a bugzilla (or other tool) database that mere
1046           mortals can have (read-only) access to for bind?
1047         </para>
1048       </question>
1049       <answer>
1050         <para>
1051           No.  The BIND 9 bug database is kept closed for a number
1052           of reasons.  These include, but are not limited to, that
1053           the database contains proprietory information from people
1054           reporting bugs.  The database has in the past and may in
1055           future contain unfixed bugs which are capable of bringing
1056           down most of the Internet's DNS infrastructure.
1057         </para>
1058         <para>
1059           The release pages for each version contain up to date
1060           lists of bugs that have been fixed post release.  That
1061           is as close as we can get to providing a bug database.
1062         </para>
1063       </answer>
1064     </qandaentry>
1065
1066     <qandaentry>
1067       <question>
1068         <para>
1069           Why do queries for NSEC3 records fail to return the NSEC3 record?
1070         </para>
1071       </question>
1072       <answer>
1073         <para>
1074           NSEC3 records are strictly meta data and can only be
1075           returned in the authority section.  This is done so that
1076           signing the zone using NSEC3 records does not bring names
1077           into existence that do not exist in the unsigned version
1078           of the zone.
1079         </para>
1080       </answer>
1081     </qandaentry>
1082
1083     </qandadiv> <!-- General Questions -->
1084
1085     <qandadiv><title>Operating-System Specific Questions</title>
1086
1087     <qandadiv><title>HPUX</title>
1088
1089     <qandaentry>
1090       <question>
1091         <para>I get the following error trying to configure BIND:
1092 <programlisting>checking if unistd.h or sys/types.h defines fd_set... no
1093 configure: error: need either working unistd.h or sys/select.h</programlisting>
1094         </para>
1095       </question>
1096       <answer>
1097         <para>
1098           You have attempted to configure BIND with the bundled C compiler.
1099           This compiler does not meet the minimum compiler requirements to
1100           for building BIND.  You need to install a ANSI C compiler and / or
1101           teach configure how to find the ANSI C compiler.  The later can
1102           be done by adjusting the PATH environment variable and / or
1103           specifying the compiler via CC.
1104         </para>
1105         <informalexample>
1106           <programlisting>./configure CC=&lt;compiler&gt; ...</programlisting>
1107         </informalexample>
1108       </answer>
1109     </qandaentry>
1110
1111     </qandadiv> <!-- HPUX -->
1112
1113     <qandadiv><title>Linux</title>
1114
1115     <qandaentry>
1116       <question>
1117         <para>
1118           Why do I get the following errors:
1119 <programlisting>general: errno2result.c:109: unexpected error:
1120 general: unable to convert errno to isc_result: 14: Bad address
1121 client: UDP client handler shutting down due to fatal receive error: unexpected error</programlisting>
1122         </para>
1123       </question>
1124       <answer>
1125         <para>
1126           This is the result of a Linux kernel bug.
1127         </para>
1128         <para>
1129           See:
1130           <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="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;</link>
1131         </para>
1132       </answer>
1133     </qandaentry>
1134
1135     <qandaentry>
1136       <question>
1137         <para>
1138           Why does named lock up when it attempts to connect over IPSEC tunnels?
1139         </para>
1140       </question>
1141       <answer>
1142         <para>
1143           This is due to a kernel bug where the fact that a socket is marked
1144           non-blocking is ignored.  It is reported that setting
1145           xfrm_larval_drop to 1 helps but this may have negative side effects.
1146           See:
1147 <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://bugzilla.redhat.com/show_bug.cgi?id=427629">&lt;https://bugzilla.redhat.com/show_bug.cgi?id=427629&gt;</link>
1148           and
1149 <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://lkml.org/lkml/2007/12/4/260">&lt;http://lkml.org/lkml/2007/12/4/260&gt;</link>.
1150         </para>
1151         <para>
1152         xfrm_larval_drop can be set to 1 by the following procedure:
1153 <programlisting>
1154 echo "1" &gt; proc/sys/net/core/xfrm_larval_drop</programlisting>
1155         </para>
1156       </answer>
1157     </qandaentry>
1158
1159     <qandaentry>
1160       <question>
1161         <para>
1162           Why do I see 5 (or more) copies of named on Linux?
1163         </para>
1164       </question>
1165       <answer>
1166         <para>
1167           Linux threads each show up as a process under ps.  The
1168           approximate number of threads running is n+4, where n is
1169           the number of CPUs.  Note that the amount of memory used
1170           is not cumulative; if each process is using 10M of memory,
1171           only a total of 10M is used.
1172         </para>
1173         <para>
1174           Newer versions of Linux's ps command hide the individual threads
1175           and require -L to display them.
1176         </para>
1177       </answer>
1178     </qandaentry>
1179
1180     <qandaentry>
1181       <question>
1182         <para>
1183           Why does BIND 9 log <quote>permission denied</quote> errors accessing
1184           its configuration files or zones on my Linux system even
1185           though it is running as root?
1186         </para>
1187       </question>
1188       <answer>
1189         <para>
1190           On Linux, BIND 9 drops most of its root privileges on
1191           startup.  This including the privilege to open files owned
1192           by other users.  Therefore, if the server is running as
1193           root, the configuration files and zone files should also
1194           be owned by root.
1195         </para>
1196       </answer>
1197     </qandaentry>
1198
1199     <qandaentry>
1200       <question>
1201         <para>
1202           I get the error message <quote>named: capset failed: Operation
1203           not permitted</quote> when starting named.
1204         </para>
1205       </question>
1206       <answer>
1207         <para>
1208           The capability module, part of "Linux Security Modules/LSM",
1209           has not been loaded into the kernel.  See insmod(8), modprobe(8).
1210         </para>
1211         <para>
1212           The relevant modules can be loaded by running:
1213 <programlisting>
1214 modprobe commoncap
1215 modprobe capability</programlisting>
1216         </para>
1217       </answer>
1218     </qandaentry>
1219
1220     <qandaentry>
1221       <question>
1222         <para>
1223            I'm running BIND on Red Hat Enterprise Linux or Fedora Core -
1224         </para>
1225         <para>
1226           Why can't named update slave zone database files?
1227         </para>
1228         <para>
1229           Why can't named create DDNS journal files or update
1230           the master zones from journals?
1231         </para>
1232         <para>
1233           Why can't named create custom log files?
1234         </para>
1235       </question>
1236
1237       <answer>
1238         <para>
1239           Red Hat Security Enhanced Linux (SELinux) policy security
1240           protections :
1241         </para>
1242
1243         <para>
1244            Red Hat have adopted the National Security Agency's
1245            SELinux security policy (see <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.nsa.gov/selinux">&lt;http://www.nsa.gov/selinux&gt;</link>)
1246            and recommendations for BIND security , which are more
1247            secure than running named in a chroot and make use of
1248            the bind-chroot environment unnecessary .
1249         </para>
1250
1251         <para>
1252           By default, named is not allowed by the SELinux policy
1253           to write, create or delete any files EXCEPT in these
1254           directories:
1255           <informalexample>
1256             <programlisting>
1257 $ROOTDIR/var/named/slaves
1258 $ROOTDIR/var/named/data
1259 $ROOTDIR/var/tmp
1260             </programlisting>
1261           </informalexample>
1262           where $ROOTDIR may be set in /etc/sysconfig/named if
1263           bind-chroot is installed.
1264         </para>
1265
1266         <para>
1267           The SELinux policy particularly does NOT allow named to modify
1268           the $ROOTDIR/var/named directory, the default location for master
1269           zone database files.
1270         </para>
1271
1272         <para>
1273           SELinux policy overrules file access permissions - so
1274           even if all the files under /var/named have ownership
1275           named:named and mode rw-rw-r--, named will still not be
1276           able to write or create files except in the directories
1277           above, with SELinux in Enforcing mode.
1278         </para>
1279
1280         <para>
1281           So, to allow named to update slave or DDNS zone files,
1282           it is best to locate them in $ROOTDIR/var/named/slaves,
1283           with named.conf zone statements such as:
1284           <informalexample>
1285             <programlisting>
1286 zone "slave.zone." IN {
1287         type slave;
1288         file "slaves/slave.zone.db";
1289         ...
1290 };
1291 zone "ddns.zone." IN  {
1292         type master;
1293         allow-updates {...};
1294         file "slaves/ddns.zone.db";
1295 };
1296             </programlisting>
1297           </informalexample>
1298         </para>
1299
1300         <para>
1301           To allow named to create its cache dump and statistics
1302           files, for example, you could use named.conf options
1303           statements such as:
1304           <informalexample>
1305             <programlisting>
1306 options {
1307         ...
1308         dump-file "/var/named/data/cache_dump.db";
1309         statistics-file "/var/named/data/named_stats.txt";
1310         ...
1311 };
1312             </programlisting>
1313           </informalexample>
1314         </para>
1315
1316         <para>
1317           You can also tell SELinux to allow named to update any
1318           zone database files, by setting the SELinux tunable boolean
1319           parameter 'named_write_master_zones=1', using the
1320           system-config-securitylevel GUI, using the 'setsebool'
1321           command, or in /etc/selinux/targeted/booleans.
1322         </para>
1323
1324         <para>
1325           You can disable SELinux protection for named entirely by
1326           setting the 'named_disable_trans=1' SELinux tunable boolean
1327           parameter.
1328         </para>
1329
1330         <para>
1331           The SELinux named policy defines these SELinux contexts for named:
1332           <informalexample>
1333             <programlisting>
1334 named_zone_t : for zone database files       - $ROOTDIR/var/named/*
1335 named_conf_t : for named configuration files - $ROOTDIR/etc/{named,rndc}.*
1336 named_cache_t: for files modifiable by named - $ROOTDIR/var/{tmp,named/{slaves,data}}
1337             </programlisting>
1338           </informalexample>
1339         </para>
1340
1341         <para>
1342           If you want to retain use of the SELinux policy for named,
1343           and put named files in different locations, you can do
1344           so by changing the context of the custom file locations
1345           .
1346         </para>
1347
1348         <para>
1349           To create a custom configuration file location, e.g.
1350           '/root/named.conf', to use with the 'named -c' option,
1351           do:
1352           <informalexample>
1353             <programlisting>
1354 # chcon system_u:object_r:named_conf_t /root/named.conf
1355             </programlisting>
1356           </informalexample>
1357         </para>
1358
1359         <para>
1360           To create a custom modifiable named data location, e.g.
1361           '/var/log/named' for a log file, do:
1362           <informalexample>
1363             <programlisting>
1364 # chcon system_u:object_r:named_cache_t /var/log/named
1365             </programlisting>
1366           </informalexample>
1367         </para>
1368
1369         <para>
1370    To create a custom zone file location, e.g. /root/zones/, do:
1371           <informalexample>
1372             <programlisting>
1373 # chcon system_u:object_r:named_zone_t /root/zones/{.,*}
1374             </programlisting>
1375           </informalexample>
1376         </para>
1377
1378         <para>
1379           See these man-pages for more information : selinux(8),
1380           named_selinux(8), chcon(1), setsebool(8)
1381         </para>
1382       </answer>
1383     </qandaentry>
1384
1385     <qandaentry>
1386       <question>
1387         <para>
1388            I'm running BIND on Ubuntu -
1389         </para>
1390         <para>
1391           Why can't named update slave zone database files?
1392         </para>
1393         <para>
1394           Why can't named create DDNS journal files or update
1395           the master zones from journals?
1396         </para>
1397         <para>
1398           Why can't named create custom log files?
1399         </para>
1400       </question>
1401       <answer>
1402         <para>
1403           Ubuntu uses AppArmor <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://en.wikipedia.org/wiki/AppArmor">
1404           &lt;http://en.wikipedia.org/wiki/AppArmor&gt;</link> in
1405           addition to normal file system permissions to protect the system.
1406         </para>
1407         <para>
1408           Adjust the paths to use those specified in /etc/apparmor.d/usr.sbin.named
1409           or adjust /etc/apparmor.d/usr.sbin.named to allow named to write at the
1410           location specified in named.conf.
1411         </para>
1412       </answer>
1413     </qandaentry>
1414
1415     <qandaentry>
1416       <question>
1417         <para>
1418           Listening on individual IPv6 interfaces does not work.
1419         </para>
1420       </question>
1421       <answer>
1422         <para>
1423           This is usually due to "/proc/net/if_inet6" not being available
1424           in the chroot file system.  Mount another instance of "proc"
1425           in the chroot file system.
1426         </para>
1427         <para>
1428           This can be be made permanent by adding a second instance to
1429           /etc/fstab.
1430           <informalexample>
1431             <programlisting>
1432 proc /proc           proc defaults 0 0
1433 proc /var/named/proc proc defaults 0 0</programlisting>
1434           </informalexample>
1435         </para>
1436       </answer>
1437     </qandaentry>
1438
1439     </qandadiv> <!-- Linux -->
1440
1441     <qandadiv><title>Windows</title>
1442
1443     <qandaentry>
1444       <question>
1445         <para>
1446           Zone transfers from my BIND 9 master to my Windows 2000
1447           slave fail.  Why?
1448         </para>
1449       </question>
1450       <answer>
1451         <para>
1452           This may be caused by a bug in the Windows 2000 DNS server
1453           where DNS messages larger than 16K are not handled properly.
1454           This can be worked around by setting the option "transfer-format
1455           one-answer;".  Also check whether your zone contains domain
1456           names with embedded spaces or other special characters,
1457           like "John\032Doe\213s\032Computer", since such names have
1458           been known to cause Windows 2000 slaves to incorrectly
1459           reject the zone.
1460         </para>
1461       </answer>
1462     </qandaentry>
1463
1464     <qandaentry>
1465       <question>
1466         <para>
1467           I get <quote>Error 1067</quote> when starting named under Windows.
1468         </para>
1469       </question>
1470       <answer>
1471         <para>
1472           This is the service manager saying that named exited.   You
1473           need to examine the Application log in the EventViewer to
1474           find out why.
1475         </para>
1476         <para>
1477           Common causes are that you failed to create "named.conf"
1478           (usually "C:\windows\dns\etc\named.conf") or failed to
1479           specify the directory in named.conf.
1480         </para>
1481         <informalexample>
1482           <programlisting>
1483 options {
1484         Directory "C:\windows\dns\etc";
1485 };</programlisting>
1486         </informalexample>
1487       </answer>
1488     </qandaentry>
1489
1490     </qandadiv> <!-- Windows -->
1491
1492     <qandadiv><title>FreeBSD</title>
1493
1494     <qandaentry>
1495       <question>
1496         <para>
1497           I have FreeBSD 4.x and "rndc-confgen -a" just sits there.
1498         </para>
1499       </question>
1500       <answer>
1501         <para>
1502           /dev/random is not configured.  Use rndcontrol(8) to tell
1503           the kernel to use certain interrupts as a source of random
1504           events.  You can make this permanent by setting rand_irqs
1505           in /etc/rc.conf.
1506         </para>
1507         <informalexample>
1508           <programlisting>
1509 rand_irqs="3 14 15"</programlisting>
1510         </informalexample>
1511         <para>
1512           See also
1513           <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://people.freebsd.org/~dougb/randomness.html">
1514           &lt;http://people.freebsd.org/~dougb/randomness.html&gt;</link>.
1515         </para>
1516       </answer>
1517     </qandaentry>
1518
1519     </qandadiv> <!-- FreeBSD -->
1520
1521     <qandadiv><title>Solaris</title>
1522
1523     <qandaentry>
1524       <question>
1525         <para>
1526           How do I integrate BIND 9 and Solaris SMF
1527         </para>
1528       </question>
1529       <answer>
1530         <para>
1531           Sun has a blog entry describing how to do this.
1532         </para>
1533         <para>
1534           <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://blogs.sun.com/roller/page/anay/Weblog?catname=%2FSolaris">
1535          &lt;http://blogs.sun.com/roller/page/anay/Weblog?catname=%2FSolaris&gt;
1536           </link>
1537         </para>
1538       </answer>
1539     </qandaentry>
1540
1541     </qandadiv> <!-- Solaris -->
1542
1543     <qandadiv><title>Apple Mac OS X</title>
1544
1545     <qandaentry>
1546       <question>
1547         <para>
1548           How do I run BIND 9 on Apple Mac OS X?
1549         </para>
1550       </question>
1551       <answer>
1552         <para>
1553          If you run Tiger(Mac OS 10.4) or later then this is all you need to do:
1554         </para>
1555         <informalexample>
1556           <programlisting>
1557 % sudo rndc-confgen  &gt; /etc/rndc.conf</programlisting>
1558         </informalexample>
1559         <para>
1560           Copy the key statement from /etc/rndc.conf into /etc/rndc.key, e.g.:
1561         </para>
1562         <informalexample>
1563           <programlisting>
1564 key "rndc-key" {
1565         algorithm hmac-sha256;
1566         secret "uvceheVuqf17ZwIcTydddw==";
1567 };</programlisting>
1568         </informalexample>
1569         <para>
1570           Then start the relevant service:
1571         </para>
1572         <informalexample>
1573           <programlisting>
1574 % sudo service org.isc.named start</programlisting>
1575         </informalexample>
1576         <para>
1577           This is persistent upon a reboot, so you will have to do it only once.
1578         </para>
1579       </answer>
1580
1581       <answer>
1582         <para>
1583          Alternatively you can just generate /etc/rndc.key by running:
1584         </para>
1585         <informalexample>
1586           <programlisting>
1587 % sudo rndc-confgen -a</programlisting>
1588         </informalexample>
1589         <para>
1590           Then start the relevant service:
1591         </para>
1592         <informalexample>
1593           <programlisting>
1594 % sudo service org.isc.named start</programlisting>
1595         </informalexample>
1596         <para>
1597           Named will look for /etc/rndc.key when it starts if it
1598           doesn't have a controls section or the existing controls are
1599           missing keys sub-clauses.  This is persistent upon a
1600           reboot, so you will have to do it only once.
1601         </para>
1602       </answer>
1603     </qandaentry>
1604
1605     </qandadiv> <!-- Apple Mac OS X -->
1606
1607     </qandadiv> <!-- Operating-System Specific Questions -->
1608
1609   </qandaset>
1610 </article>