summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/doc/arm/Bv9ARM.ch01.html
blob: 5b3659e61010598973a3d3dc479c1570f971397d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Introduction </TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="BIND 9 Administrator Reference Manual"
HREF="Bv9ARM.html"><LINK
REL="PREVIOUS"
TITLE="BIND 9 Administrator Reference Manual"
HREF="Bv9ARM.html"><LINK
REL="NEXT"
TITLE="BIND Resource Requirements"
HREF="Bv9ARM.ch02.html"></HEAD
><BODY
CLASS="chapter"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>BIND 9 Administrator Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="Bv9ARM.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="Bv9ARM.ch02.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="chapter"
><H1
><A
NAME="ch01"
></A
>Chapter 1. Introduction </H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>1.1. <A
HREF="Bv9ARM.ch01.html#AEN15"
>Scope of Document</A
></DT
><DT
>1.2. <A
HREF="Bv9ARM.ch01.html#AEN22"
>Organization of This Document</A
></DT
><DT
>1.3. <A
HREF="Bv9ARM.ch01.html#AEN42"
>Conventions Used in This Document</A
></DT
><DT
>1.4. <A
HREF="Bv9ARM.ch01.html#AEN107"
>The Domain Name System (<ACRONYM
CLASS="acronym"
>DNS</ACRONYM
>)</A
></DT
></DL
></DIV
><P
>The Internet Domain Name System (<ACRONYM
CLASS="acronym"
>DNS</ACRONYM
>) consists of the syntax
  to specify the names of entities in the Internet in a hierarchical
  manner, the rules used for delegating authority over names, and the
  system implementation that actually maps names to Internet
  addresses.  <ACRONYM
CLASS="acronym"
>DNS</ACRONYM
> data is maintained in a group of distributed
  hierarchical databases.</P
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN15"
>1.1. Scope of Document</A
></H1
><P
>The Berkeley Internet Name Domain (<ACRONYM
CLASS="acronym"
>BIND</ACRONYM
>) implements an
    domain name server for a number of operating systems. This
    document provides basic information about the installation and
    care of the Internet Software Consortium (<ACRONYM
CLASS="acronym"
>ISC</ACRONYM
>)
    <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> version 9 software package for system
    administrators.</P
><P
>This version of the manual corresponds to BIND version 9.3.</P
></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN22"
>1.2. Organization of This Document</A
></H1
><P
>In this document, <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Section 1</I
></SPAN
> introduces
    the basic <ACRONYM
CLASS="acronym"
>DNS</ACRONYM
> and <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> concepts. <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Section 2</I
></SPAN
>
    describes resource requirements for running <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> in various
    environments. Information in <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Section 3</I
></SPAN
> is
    <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>task-oriented</I
></SPAN
> in its presentation and is
    organized functionally, to aid in the process of installing the
    <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> 9 software. The task-oriented section is followed by
    <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Section 4</I
></SPAN
>, which contains more advanced
    concepts that the system administrator may need for implementing
    certain options. <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Section 5</I
></SPAN
>
    describes the <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> 9 lightweight
    resolver.  The contents of <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Section 6</I
></SPAN
> are
    organized as in a reference manual to aid in the ongoing
    maintenance of the software. <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Section 7
    </I
></SPAN
>addresses security considerations, and
    <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Section 8</I
></SPAN
> contains troubleshooting help. The
    main body of the document is followed by several
    <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Appendices</I
></SPAN
> which contain useful reference
    information, such as a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Bibliography</I
></SPAN
> and
    historic information related to <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> and the Domain Name
    System.</P
></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN42"
>1.3. Conventions Used in This Document</A
></H1
><P
>In this document, we use the following general typographic
    conventions:</P
><DIV
CLASS="informaltable"
><P
></P
><A
NAME="AEN45"
></A
><TABLE
CELLPADDING="3"
BORDER="1"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
>&#13;<P
><SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>To
describe:</I
></SPAN
></P
></TD
><TD
>&#13;<P
><SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>We use the style:</I
></SPAN
></P
></TD
></TR
><TR
><TD
>&#13;<P
>a pathname, filename, URL, hostname,
mailing list name, or new term or concept</P
></TD
><TD
><P
><TT
CLASS="filename"
>Fixed width</TT
></P
></TD
></TR
><TR
><TD
><P
>literal user
input</P
></TD
><TD
><P
><KBD
CLASS="userinput"
>Fixed Width Bold</KBD
></P
></TD
></TR
><TR
><TD
><P
>program output</P
></TD
><TD
><P
><SAMP
CLASS="computeroutput"
>Fixed Width</SAMP
></P
></TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
><P
>The following conventions are used in descriptions of the
<ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> configuration file:<DIV
CLASS="informaltable"
><P
></P
><A
NAME="AEN77"
></A
><TABLE
CELLPADDING="3"
BORDER="1"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
><P
><SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>To
describe:</I
></SPAN
></P
></TD
><TD
><P
><SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>We use the style:</I
></SPAN
></P
></TD
></TR
><TR
><TD
><P
>keywords</P
></TD
><TD
><P
><VAR
CLASS="literal"
>Fixed Width</VAR
></P
></TD
></TR
><TR
><TD
><P
>variables</P
></TD
><TD
><P
><VAR
CLASS="varname"
>Fixed Width</VAR
></P
></TD
></TR
><TR
><TD
><P
>Optional input</P
></TD
><TD
><P
>[<SPAN
CLASS="optional"
>Text is enclosed in square brackets</SPAN
>]</P
></TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></P
></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN107"
>1.4. The Domain Name System (<ACRONYM
CLASS="acronym"
>DNS</ACRONYM
>)</A
></H1
><P
>The purpose of this document is to explain the installation
and upkeep of the <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> software package, and we
begin by reviewing the fundamentals of the Domain Name System
(<ACRONYM
CLASS="acronym"
>DNS</ACRONYM
>) as they relate to <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
>.
</P
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN114"
>1.4.1. DNS Fundamentals</A
></H2
><P
>The Domain Name System (DNS) is the hierarchical, distributed
database.  It stores information for mapping Internet host names to IP
addresses and vice versa, mail routing information, and other data
used by Internet applications.</P
><P
>Clients look up information in the DNS by calling a
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>resolver</I
></SPAN
> library, which sends queries to one or
more <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>name servers</I
></SPAN
> and interprets the responses.
The <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> 9 software distribution contains a
name server, <B
CLASS="command"
>named</B
>, and two resolver
libraries, <B
CLASS="command"
>liblwres</B
> and <B
CLASS="command"
>libbind</B
>.
</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN124"
>1.4.2. Domains and Domain Names</A
></H2
><P
>The data stored in the DNS is identified by <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>domain
names</I
></SPAN
> that are organized as a tree according to
organizational or administrative boundaries. Each node of the tree,
called a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>domain</I
></SPAN
>, is given a label. The domain name of the
node is the concatenation of all the labels on the path from the
node to the <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>root</I
></SPAN
> node.  This is represented
in written form as a string of labels listed from right to left and
separated by dots. A label need only be unique within its parent
domain.</P
><P
>For example, a domain name for a host at the
company <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>Example, Inc.</I
></SPAN
> could be
<VAR
CLASS="literal"
>mail.example.com</VAR
>,
where <VAR
CLASS="literal"
>com</VAR
> is the
top level domain to which
<VAR
CLASS="literal"
>ourhost.example.com</VAR
> belongs,
<VAR
CLASS="literal"
>example</VAR
> is
a subdomain of <VAR
CLASS="literal"
>com</VAR
>, and
<VAR
CLASS="literal"
>ourhost</VAR
> is the
name of the host.</P
><P
>For administrative purposes, the name space is partitioned into
areas called <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>zones</I
></SPAN
>, each starting at a node and
extending down to the leaf nodes or to nodes where other zones start.
The data for each zone is stored in a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>name
server</I
></SPAN
>, which answers queries about the zone using the
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>DNS protocol</I
></SPAN
>.
</P
><P
>The data associated with each domain name is stored in the
form of <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>resource records</I
></SPAN
> (<ACRONYM
CLASS="acronym"
>RR</ACRONYM
>s).
Some of the supported resource record types are described in
<A
HREF="Bv9ARM.ch06.html#types_of_resource_records_and_when_to_use_them"
>Section 6.3.1</A
>.</P
><P
>For more detailed information about the design of the DNS and
the DNS protocol, please refer to the standards documents listed in
<A
HREF="Bv9ARM.ch09.html#rfcs"
>Section A.3.1</A
>.</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN148"
>1.4.3. Zones</A
></H2
><P
>To properly operate a name server, it is important to understand
the difference between a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>zone</I
></SPAN
>
and a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>domain</I
></SPAN
>.</P
><P
>As we stated previously, a zone is a point of delegation in
the <ACRONYM
CLASS="acronym"
>DNS</ACRONYM
> tree. A zone consists of
those contiguous parts of the domain
tree for which a name server has complete information and over which
it has authority. It contains all domain names from a certain point
downward in the domain tree except those which are delegated to
other zones. A delegation point is marked by one or more
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>NS records</I
></SPAN
> in the
parent zone, which should be matched by equivalent NS records at
the root of the delegated zone.</P
><P
>For instance, consider the <VAR
CLASS="literal"
>example.com</VAR
>
domain which includes names
such as <VAR
CLASS="literal"
>host.aaa.example.com</VAR
> and
<VAR
CLASS="literal"
>host.bbb.example.com</VAR
> even though
the <VAR
CLASS="literal"
>example.com</VAR
> zone includes
only delegations for the <VAR
CLASS="literal"
>aaa.example.com</VAR
> and
<VAR
CLASS="literal"
>bbb.example.com</VAR
> zones.  A zone can map
exactly to a single domain, but could also include only part of a
domain, the rest of which could be delegated to other
name servers. Every name in the <ACRONYM
CLASS="acronym"
>DNS</ACRONYM
> tree is a
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>domain</I
></SPAN
>, even if it is
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>terminal</I
></SPAN
>, that is, has no
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>subdomains</I
></SPAN
>.  Every subdomain is a domain and
every domain except the root is also a subdomain. The terminology is
not intuitive and we suggest that you read RFCs 1033, 1034 and 1035 to
gain a complete understanding of this difficult and subtle
topic.</P
><P
>Though <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> is called a "domain name server",
it deals primarily in terms of zones. The master and slave
declarations in the <TT
CLASS="filename"
>named.conf</TT
> file specify
zones, not domains. When you ask some other site if it is willing to
be a slave server for your <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>domain</I
></SPAN
>, you are
actually asking for slave service for some collection of zones.</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN171"
>1.4.4. Authoritative Name Servers</A
></H2
><P
>Each zone is served by at least
one <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>authoritative name server</I
></SPAN
>,
which contains the complete data for the zone.
To make the DNS tolerant of server and network failures,
most zones have two or more authoritative servers.
</P
><P
>Responses from authoritative servers have the "authoritative
answer" (AA) bit set in the response packets.  This makes them 
easy to identify when debugging DNS configurations using tools like
<B
CLASS="command"
>dig</B
> (<A
HREF="Bv9ARM.ch03.html#diagnostic_tools"
>Section 3.3.1.1</A
>).</P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN178"
>1.4.4.1. The Primary Master</A
></H3
><P
>&#13;The authoritative server where the master copy of the zone data is maintained is
called the <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>primary master</I
></SPAN
> server, or simply the
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>primary</I
></SPAN
>.  It loads the zone contents from some
local file edited by humans or perhaps generated mechanically from
some other local file which is edited by humans.  This file is called
the <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>zone file</I
></SPAN
> or <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>master file</I
></SPAN
>.</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN185"
>1.4.4.2. Slave Servers</A
></H3
><P
>The other authoritative servers, the <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>slave</I
></SPAN
>
servers (also known as <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>secondary</I
></SPAN
> servers) load
the zone contents from another server using a replication process
known as a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>zone transfer</I
></SPAN
>.  Typically the data are
transferred directly from the primary master, but it is also possible
to transfer it from another slave.  In other words, a slave server
may itself act as a master to a subordinate slave server.</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN191"
>1.4.4.3. Stealth Servers</A
></H3
><P
>Usually all of the zone's authoritative servers are listed in 
NS records in the parent zone.  These NS records constitute
a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>delegation</I
></SPAN
> of the zone from the parent.
The authoritative servers are also listed in the zone file itself,
at the <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>top level</I
></SPAN
> or <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>apex</I
></SPAN
>
of the zone.  You can list servers in the zone's top-level NS
records that are not in the parent's NS delegation, but you cannot
list servers in the parent's delegation that are not present at
the zone's top level.</P
><P
>A <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>stealth server</I
></SPAN
> is a server that is
authoritative for a zone but is not listed in that zone's NS
records.  Stealth servers can be used for keeping a local copy of a
zone to speed up access to the zone's records or to make sure that the
zone is available even if all the "official" servers for the zone are
inaccessible.</P
><P
>A configuration where the primary master server itself is a
stealth server is often referred to as a "hidden primary"
configuration.  One use for this configuration is when the primary master
is behind a firewall and therefore unable to communicate directly
with the outside world.</P
></DIV
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN200"
>1.4.5. Caching Name Servers</A
></H2
><P
>The resolver libraries provided by most operating systems are 
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>stub resolvers</I
></SPAN
>, meaning that they are not capable of
performing the full DNS resolution process by themselves by talking
directly to the authoritative servers.  Instead, they rely on a local
name server to perform the resolution on their behalf.  Such a server
is called a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>recursive</I
></SPAN
> name server; it performs
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>recursive lookups</I
></SPAN
> for local clients.</P
><P
>To improve performance, recursive servers cache the results of
the lookups they perform.  Since the processes of recursion and
caching are intimately connected, the terms
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>recursive server</I
></SPAN
> and
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>caching server</I
></SPAN
> are often used synonymously.</P
><P
>The length of time for which a record may be retained in
in the cache of a caching name server is controlled by the 
Time To Live (TTL) field associated with each resource record.
</P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN210"
>1.4.5.1. Forwarding</A
></H3
><P
>Even a caching name server does not necessarily perform
the complete recursive lookup itself.  Instead, it can
<SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>forward</I
></SPAN
> some or all of the queries
that it cannot satisfy from its cache to another caching name server,
commonly referred to as a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>forwarder</I
></SPAN
>.
</P
><P
>There may be one or more forwarders,
and they are queried in turn until the list is exhausted or an answer
is found. Forwarders are typically used when you do not
wish all the servers at a given site to interact directly with the rest of
the Internet servers. A typical scenario would involve a number
of internal <ACRONYM
CLASS="acronym"
>DNS</ACRONYM
> servers and an Internet firewall. Servers unable
to pass packets through the firewall would forward to the server
that can do it, and that server would query the Internet <ACRONYM
CLASS="acronym"
>DNS</ACRONYM
> servers
on the internal server's behalf. An added benefit of using the forwarding
feature is that the central machine develops a much more complete
cache of information that all the clients can take advantage
of.</P
></DIV
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN218"
>1.4.6. Name Servers in Multiple Roles</A
></H2
><P
>The <ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> name server can simultaneously act as
a master for some zones, a slave for other zones, and as a caching
(recursive) server for a set of local clients.</P
><P
>However, since the functions of authoritative name service
and caching/recursive name service are logically separate, it is
often advantageous to run them on separate server machines.

A server that only provides authoritative name service
(an <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>authoritative-only</I
></SPAN
> server) can run with
recursion disabled, improving reliability and security.

A server that is not authoritative for any zones and only provides
recursive service to local
clients (a <SPAN
CLASS="emphasis"
><I
CLASS="emphasis"
>caching-only</I
></SPAN
> server)
does not need to be reachable from the Internet at large and can
be placed inside a firewall.</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="Bv9ARM.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="Bv9ARM.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="Bv9ARM.ch02.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>BIND 9 Administrator Reference Manual</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><ACRONYM
CLASS="acronym"
>BIND</ACRONYM
> Resource Requirements</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>