1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.7.0) on Thu Jan 24 21:19:04 GMT-08:00 2008 -->
7
Zone (dnsjava documentation)
10
<META NAME="date" CONTENT="2008-01-24">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
if (location.href.indexOf('is-external=true') == -1) {
18
parent.document.title="Zone (dnsjava documentation)";
27
<BODY BGCOLOR="white" onload="windowTitle();">
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
<TR ALIGN="center" VALIGN="top">
40
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
42
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
43
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
44
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
45
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
46
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
50
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
<A HREF="../../../org/xbill/DNS/X25Record.html" title="class in org.xbill.DNS"><B>PREV CLASS</B></A>
58
<A HREF="../../../org/xbill/DNS/ZoneTransferException.html" title="class in org.xbill.DNS"><B>NEXT CLASS</B></A></FONT></TD>
59
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60
<A HREF="../../../index.html?org/xbill/DNS/Zone.html" target="_top"><B>FRAMES</B></A>
61
<A HREF="Zone.html" target="_top"><B>NO FRAMES</B></A>
62
<SCRIPT type="text/javascript">
65
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
70
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
77
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
83
<A NAME="skip-navbar_top"></A>
84
<!-- ========= END OF TOP NAVBAR ========= -->
87
<!-- ======== START OF CLASS DATA ======== -->
94
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
95
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.xbill.DNS.Zone</B>
99
<DT><PRE>public class <B>Zone</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
103
A DNS Zone. This encapsulates all data related to a Zone, and provides
104
convenient lookup methods.
109
<DT><B>Author:</B></DT>
110
<DD>Brian Wellington</DD>
115
<!-- =========== FIELD SUMMARY =========== -->
117
<A NAME="field_summary"><!-- --></A>
118
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121
<B>Field Summary</B></FONT></TH>
123
<TR BGCOLOR="white" CLASS="TableRowColor">
124
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125
<CODE>static int</CODE></FONT></TD>
126
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#PRIMARY">PRIMARY</A></B></CODE>
129
A primary zone</TD>
131
<TR BGCOLOR="white" CLASS="TableRowColor">
132
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133
<CODE>static int</CODE></FONT></TD>
134
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#SECONDARY">SECONDARY</A></B></CODE>
137
A secondary zone</TD>
141
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
143
<A NAME="constructor_summary"><!-- --></A>
144
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
145
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
146
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
147
<B>Constructor Summary</B></FONT></TH>
149
<TR BGCOLOR="white" CLASS="TableRowColor">
150
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#Zone(org.xbill.DNS.Name, int, java.lang.String)">Zone</A></B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> zone,
152
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> remote)</CODE>
155
Creates a Zone by performing a zone transfer to the specified host.</TD>
157
<TR BGCOLOR="white" CLASS="TableRowColor">
158
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#Zone(org.xbill.DNS.Name, org.xbill.DNS.Record[])">Zone</A></B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> zone,
159
<A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A>[] records)</CODE>
162
Creates a Zone from an array of records.</TD>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#Zone(org.xbill.DNS.Name, java.lang.String)">Zone</A></B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> zone,
166
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> file)</CODE>
169
Creates a Zone from the records in the specified master file.</TD>
171
<TR BGCOLOR="white" CLASS="TableRowColor">
172
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#Zone(org.xbill.DNS.ZoneTransferIn)">Zone</A></B>(<A HREF="../../../org/xbill/DNS/ZoneTransferIn.html" title="class in org.xbill.DNS">ZoneTransferIn</A> xfrin)</CODE>
175
Creates a Zone by doing the specified zone transfer.</TD>
179
<!-- ========== METHOD SUMMARY =========== -->
181
<A NAME="method_summary"><!-- --></A>
182
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
183
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
184
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
185
<B>Method Summary</B></FONT></TH>
187
<TR BGCOLOR="white" CLASS="TableRowColor">
188
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189
<CODE> void</CODE></FONT></TD>
190
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#addRecord(org.xbill.DNS.Record)">addRecord</A></B>(<A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A> r)</CODE>
193
Adds a Record to the Zone</TD>
195
<TR BGCOLOR="white" CLASS="TableRowColor">
196
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197
<CODE> void</CODE></FONT></TD>
198
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#addRRset(org.xbill.DNS.RRset)">addRRset</A></B>(<A HREF="../../../org/xbill/DNS/RRset.html" title="class in org.xbill.DNS">RRset</A> rrset)</CODE>
201
Adds an RRset to the Zone</TD>
203
<TR BGCOLOR="white" CLASS="TableRowColor">
204
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A></CODE></FONT></TD>
206
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#AXFR()">AXFR</A></B>()</CODE>
209
Returns an Iterator over the RRsets in the zone that can be used to
210
construct an AXFR response.</TD>
212
<TR BGCOLOR="white" CLASS="TableRowColor">
213
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214
<CODE> <A HREF="../../../org/xbill/DNS/RRset.html" title="class in org.xbill.DNS">RRset</A></CODE></FONT></TD>
215
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#findExactMatch(org.xbill.DNS.Name, int)">findExactMatch</A></B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> name,
216
int type)</CODE>
219
Looks up Records in the zone, finding exact matches only.</TD>
221
<TR BGCOLOR="white" CLASS="TableRowColor">
222
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223
<CODE> <A HREF="../../../org/xbill/DNS/SetResponse.html" title="class in org.xbill.DNS">SetResponse</A></CODE></FONT></TD>
224
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#findRecords(org.xbill.DNS.Name, int)">findRecords</A></B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> name,
225
int type)</CODE>
228
Looks up Records in the Zone.</TD>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232
<CODE> int</CODE></FONT></TD>
233
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#getDClass()">getDClass</A></B>()</CODE>
236
Returns the Zone's class</TD>
238
<TR BGCOLOR="white" CLASS="TableRowColor">
239
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240
<CODE> <A HREF="../../../org/xbill/DNS/RRset.html" title="class in org.xbill.DNS">RRset</A></CODE></FONT></TD>
241
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#getNS()">getNS</A></B>()</CODE>
244
Returns the Zone origin's NS records</TD>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248
<CODE> <A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A></CODE></FONT></TD>
249
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#getOrigin()">getOrigin</A></B>()</CODE>
252
Returns the Zone's origin</TD>
254
<TR BGCOLOR="white" CLASS="TableRowColor">
255
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256
<CODE> <A HREF="../../../org/xbill/DNS/SOARecord.html" title="class in org.xbill.DNS">SOARecord</A></CODE></FONT></TD>
257
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#getSOA()">getSOA</A></B>()</CODE>
260
Returns the Zone's SOA record</TD>
262
<TR BGCOLOR="white" CLASS="TableRowColor">
263
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A></CODE></FONT></TD>
265
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#iterator()">iterator</A></B>()</CODE>
268
Returns an Iterator over the RRsets in the zone.</TD>
270
<TR BGCOLOR="white" CLASS="TableRowColor">
271
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272
<CODE> void</CODE></FONT></TD>
273
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#removeRecord(org.xbill.DNS.Record)">removeRecord</A></B>(<A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A> r)</CODE>
276
Removes a record from the Zone</TD>
278
<TR BGCOLOR="white" CLASS="TableRowColor">
279
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
281
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#toMasterFile()">toMasterFile</A></B>()</CODE>
284
Returns the contents of the Zone in master file format.</TD>
286
<TR BGCOLOR="white" CLASS="TableRowColor">
287
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
289
<TD><CODE><B><A HREF="../../../org/xbill/DNS/Zone.html#toString()">toString</A></B>()</CODE>
292
Returns the contents of the Zone as a string (in master file format).</TD>
295
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
296
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
297
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
298
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
300
<TR BGCOLOR="white" CLASS="TableRowColor">
301
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
307
<!-- ============ FIELD DETAIL =========== -->
309
<A NAME="field_detail"><!-- --></A>
310
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
311
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
312
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
313
<B>Field Detail</B></FONT></TH>
317
<A NAME="PRIMARY"><!-- --></A><H3>
320
public static final int <B>PRIMARY</B></PRE>
325
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.xbill.DNS.Zone.PRIMARY">Constant Field Values</A></DL>
329
<A NAME="SECONDARY"><!-- --></A><H3>
332
public static final int <B>SECONDARY</B></PRE>
337
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.xbill.DNS.Zone.SECONDARY">Constant Field Values</A></DL>
340
<!-- ========= CONSTRUCTOR DETAIL ======== -->
342
<A NAME="constructor_detail"><!-- --></A>
343
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
344
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
345
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
346
<B>Constructor Detail</B></FONT></TH>
350
<A NAME="Zone(org.xbill.DNS.Name, java.lang.String)"><!-- --></A><H3>
353
public <B>Zone</B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> zone,
354
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> file)
355
throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
357
<DD>Creates a Zone from the records in the specified master file.
360
<DT><B>Parameters:</B><DD><CODE>zone</CODE> - The name of the zone.<DD><CODE>file</CODE> - The master file to read from.
362
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/Master.html" title="class in org.xbill.DNS"><CODE>Master</CODE></A></DL>
366
<A NAME="Zone(org.xbill.DNS.Name, org.xbill.DNS.Record[])"><!-- --></A><H3>
369
public <B>Zone</B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> zone,
370
<A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A>[] records)
371
throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
373
<DD>Creates a Zone from an array of records.
376
<DT><B>Parameters:</B><DD><CODE>zone</CODE> - The name of the zone.<DD><CODE>records</CODE> - The records to add to the zone.
378
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/Master.html" title="class in org.xbill.DNS"><CODE>Master</CODE></A></DL>
382
<A NAME="Zone(org.xbill.DNS.ZoneTransferIn)"><!-- --></A><H3>
385
public <B>Zone</B>(<A HREF="../../../org/xbill/DNS/ZoneTransferIn.html" title="class in org.xbill.DNS">ZoneTransferIn</A> xfrin)
386
throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>,
387
<A HREF="../../../org/xbill/DNS/ZoneTransferException.html" title="class in org.xbill.DNS">ZoneTransferException</A></PRE>
389
<DD>Creates a Zone by doing the specified zone transfer.
392
<DT><B>Parameters:</B><DD><CODE>xfrin</CODE> - The incoming zone transfer to execute.
394
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE>
395
<DD><CODE><A HREF="../../../org/xbill/DNS/ZoneTransferException.html" title="class in org.xbill.DNS">ZoneTransferException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/ZoneTransferIn.html" title="class in org.xbill.DNS"><CODE>ZoneTransferIn</CODE></A></DL>
399
<A NAME="Zone(org.xbill.DNS.Name, int, java.lang.String)"><!-- --></A><H3>
402
public <B>Zone</B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> zone,
404
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> remote)
405
throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>,
406
<A HREF="../../../org/xbill/DNS/ZoneTransferException.html" title="class in org.xbill.DNS">ZoneTransferException</A></PRE>
408
<DD>Creates a Zone by performing a zone transfer to the specified host.
413
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE>
414
<DD><CODE><A HREF="../../../org/xbill/DNS/ZoneTransferException.html" title="class in org.xbill.DNS">ZoneTransferException</A></CODE><DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/ZoneTransferIn.html" title="class in org.xbill.DNS"><CODE>ZoneTransferIn</CODE></A></DL>
417
<!-- ============ METHOD DETAIL ========== -->
419
<A NAME="method_detail"><!-- --></A>
420
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
421
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
422
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
423
<B>Method Detail</B></FONT></TH>
427
<A NAME="getOrigin()"><!-- --></A><H3>
430
public <A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> <B>getOrigin</B>()</PRE>
432
<DD>Returns the Zone's origin
440
<A NAME="getNS()"><!-- --></A><H3>
443
public <A HREF="../../../org/xbill/DNS/RRset.html" title="class in org.xbill.DNS">RRset</A> <B>getNS</B>()</PRE>
445
<DD>Returns the Zone origin's NS records
453
<A NAME="getSOA()"><!-- --></A><H3>
456
public <A HREF="../../../org/xbill/DNS/SOARecord.html" title="class in org.xbill.DNS">SOARecord</A> <B>getSOA</B>()</PRE>
458
<DD>Returns the Zone's SOA record
466
<A NAME="getDClass()"><!-- --></A><H3>
469
public int <B>getDClass</B>()</PRE>
471
<DD>Returns the Zone's class
479
<A NAME="findRecords(org.xbill.DNS.Name, int)"><!-- --></A><H3>
482
public <A HREF="../../../org/xbill/DNS/SetResponse.html" title="class in org.xbill.DNS">SetResponse</A> <B>findRecords</B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> name,
485
<DD>Looks up Records in the Zone. This follows CNAMEs and wildcards.
488
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to look up<DD><CODE>type</CODE> - The type to look up
489
<DT><B>Returns:</B><DD>A SetResponse object<DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/SetResponse.html" title="class in org.xbill.DNS"><CODE>SetResponse</CODE></A></DL>
494
<A NAME="findExactMatch(org.xbill.DNS.Name, int)"><!-- --></A><H3>
497
public <A HREF="../../../org/xbill/DNS/RRset.html" title="class in org.xbill.DNS">RRset</A> <B>findExactMatch</B>(<A HREF="../../../org/xbill/DNS/Name.html" title="class in org.xbill.DNS">Name</A> name,
500
<DD>Looks up Records in the zone, finding exact matches only.
503
<DT><B>Parameters:</B><DD><CODE>name</CODE> - The name to look up<DD><CODE>type</CODE> - The type to look up
504
<DT><B>Returns:</B><DD>The matching RRset<DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/RRset.html" title="class in org.xbill.DNS"><CODE>RRset</CODE></A></DL>
509
<A NAME="addRRset(org.xbill.DNS.RRset)"><!-- --></A><H3>
512
public void <B>addRRset</B>(<A HREF="../../../org/xbill/DNS/RRset.html" title="class in org.xbill.DNS">RRset</A> rrset)</PRE>
514
<DD>Adds an RRset to the Zone
517
<DT><B>Parameters:</B><DD><CODE>rrset</CODE> - The RRset to be added<DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/RRset.html" title="class in org.xbill.DNS"><CODE>RRset</CODE></A></DL>
522
<A NAME="addRecord(org.xbill.DNS.Record)"><!-- --></A><H3>
525
public void <B>addRecord</B>(<A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A> r)</PRE>
527
<DD>Adds a Record to the Zone
530
<DT><B>Parameters:</B><DD><CODE>r</CODE> - The record to be added<DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS"><CODE>Record</CODE></A></DL>
535
<A NAME="removeRecord(org.xbill.DNS.Record)"><!-- --></A><H3>
538
public void <B>removeRecord</B>(<A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS">Record</A> r)</PRE>
540
<DD>Removes a record from the Zone
543
<DT><B>Parameters:</B><DD><CODE>r</CODE> - The record to be removed<DT><B>See Also:</B><DD><A HREF="../../../org/xbill/DNS/Record.html" title="class in org.xbill.DNS"><CODE>Record</CODE></A></DL>
548
<A NAME="iterator()"><!-- --></A><H3>
551
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A> <B>iterator</B>()</PRE>
553
<DD>Returns an Iterator over the RRsets in the zone.
561
<A NAME="AXFR()"><!-- --></A><H3>
564
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A> <B>AXFR</B>()</PRE>
566
<DD>Returns an Iterator over the RRsets in the zone that can be used to
567
construct an AXFR response. This is identical to <A HREF="../../../org/xbill/DNS/Zone.html#iterator()"><CODE>iterator()</CODE></A> except
568
that the SOA is returned at the end as well as the beginning.
576
<A NAME="toMasterFile()"><!-- --></A><H3>
579
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toMasterFile</B>()</PRE>
581
<DD>Returns the contents of the Zone in master file format.
589
<A NAME="toString()"><!-- --></A><H3>
592
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
594
<DD>Returns the contents of the Zone as a string (in master file format).
597
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
603
<!-- ========= END OF CLASS DATA ========= -->
607
<!-- ======= START OF BOTTOM NAVBAR ====== -->
608
<A NAME="navbar_bottom"><!-- --></A>
609
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
610
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
612
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
613
<A NAME="navbar_bottom_firstrow"><!-- --></A>
614
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
615
<TR ALIGN="center" VALIGN="top">
616
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
617
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
618
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
619
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
620
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
621
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
622
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
626
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
632
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
633
<A HREF="../../../org/xbill/DNS/X25Record.html" title="class in org.xbill.DNS"><B>PREV CLASS</B></A>
634
<A HREF="../../../org/xbill/DNS/ZoneTransferException.html" title="class in org.xbill.DNS"><B>NEXT CLASS</B></A></FONT></TD>
635
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
636
<A HREF="../../../index.html?org/xbill/DNS/Zone.html" target="_top"><B>FRAMES</B></A>
637
<A HREF="Zone.html" target="_top"><B>NO FRAMES</B></A>
638
<SCRIPT type="text/javascript">
641
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
646
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
653
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
654
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
655
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
656
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
659
<A NAME="skip-navbar_bottom"></A>
660
<!-- ======== END OF BOTTOM NAVBAR ======= -->