|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.xbill.DNS.NameSet
|
+--org.xbill.DNS.Zone
A DNS Zone. This encapsulates all data related to a Zone, and provides convienient lookup methods.
| Field Summary | |
static int |
PRIMARY
A primary zone |
static int |
SECONDARY
A secondary zone (unimplemented) |
| Constructor Summary | |
Zone(Name zone,
short _dclass,
String remote,
Cache cache)
Creates a Zone from the records in the specified master file. |
|
Zone(String file,
Cache cache)
Creates a Zone from the records in the specified master file. |
|
| Method Summary | |
void |
addRecord(Record r)
Adds a record to the Zone |
Enumeration |
AXFR()
|
RRset |
findExactMatch(Name name,
short type)
Looks up Records in the zone, finding exact matches only. |
SetResponse |
findRecords(Name name,
short type)
Looks up Records in the Zone. |
short |
getDClass()
Returns the Zone's class |
RRset |
getNS()
Returns the Zone origin's NS records |
Name |
getOrigin()
Returns the Zone's origin |
SOARecord |
getSOA()
Returns the Zone's SOA record |
| Methods inherited from class org.xbill.DNS.NameSet |
addSet,
clear,
findExactSet,
findName,
findSets,
removeName,
removeSet,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final int PRIMARY
public static final int SECONDARY
| Constructor Detail |
public Zone(String file,
Cache cache)
throws IOException
Cache,
Master
public Zone(Name zone,
short _dclass,
String remote,
Cache cache)
throws IOException
Cache,
Master| Method Detail |
public Name getOrigin()
public RRset getNS()
public SOARecord getSOA()
public short getDClass()
public SetResponse findRecords(Name name,
short type)
name - The name to look uptype - The type to look upSetResponse
public RRset findExactMatch(Name name,
short type)
name - The name to look uptype - The type to look upRRsetpublic void addRecord(Record r)
r - The record to be addedRecordpublic Enumeration AXFR()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||