|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.NameSet
org.xbill.DNS.Zone
A DNS Zone. This encapsulates all data related to a Zone, and provides convenient lookup methods.
Field Summary | |
protected static Object |
NXRRSET
|
static int |
PRIMARY
A primary zone |
static int |
SECONDARY
A secondary zone |
Constructor Summary | |
Zone(Name zone,
int dclass,
String remote)
Creates a Zone by performing a zone transfer to the specified host. |
|
Zone(Name zone,
int dclass,
String remote,
Cache cache)
Creates a Zone by performing a zone transfer to the specified host. |
|
Zone(Record[] records,
Cache cache,
Name initialOrigin)
Creates a Zone from an array of records. |
|
Zone(String file,
Cache cache)
Creates a Zone from the records in the specified master file. |
|
Zone(String file,
Cache cache,
Name initialOrigin)
Creates a Zone from the records in the specified master file. |
Method Summary | |
void |
addRecord(Record r)
Adds a record to the Zone |
protected void |
addSet(Name name,
int type,
org.xbill.DNS.TypedObject set)
Adds a set associated with a name/type. |
Iterator |
AXFR()
Returns an Iterator containing the RRsets of the zone that can be used to construct an AXFR. |
protected void |
clear()
Deletes all sets in a NameSet |
RRset |
findExactMatch(Name name,
int type)
Looks up Records in the zone, finding exact matches only. |
protected Object |
findExactSet(Name name,
int type)
Finds all sets that exactly match. |
protected Object[] |
findExactSets(Name name)
Finds all sets at a name. |
SetResponse |
findRecords(Name name,
int type)
Looks up Records in the Zone. |
void |
fromXFR(Name zone,
int dclass,
String remote)
|
int |
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 |
protected Object |
lookup(Name name,
int type)
Finds all matching sets or something that causes the lookup to stop. |
protected void |
removeName(Name name)
Removes all data associated with the given name. |
void |
removeRecord(Record r)
Removes a record from the Zone |
protected void |
removeSet(Name name,
int type,
org.xbill.DNS.TypedObject set)
Removes the given set with the name and type. |
protected void |
setOrigin(Name origin)
Sets the origin of the NameSet |
String |
toMasterFile()
Returns the contents of a Zone in master file format. |
String |
toString()
Converts the NameSet to a String |
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
protected static Object NXRRSET
Constructor Detail |
public Zone(String file, Cache cache, Name initialOrigin) throws IOException
Cache
,
Master
public Zone(Record[] records, Cache cache, Name initialOrigin) throws IOException
Cache
,
Master
public Zone(String file, Cache cache) throws IOException
Cache
,
Master
public Zone(Name zone, int dclass, String remote) throws IOException, ZoneTransferException
Master
public Zone(Name zone, int dclass, String remote, Cache cache) throws IOException
Master
Method Detail |
public void fromXFR(Name zone, int dclass, String remote) throws IOException, ZoneTransferException
IOException
ZoneTransferException
public Name getOrigin()
public RRset getNS()
public SOARecord getSOA()
public int getDClass()
public SetResponse findRecords(Name name, int type)
name
- The name to look uptype
- The type to look up
SetResponse
public RRset findExactMatch(Name name, int type)
name
- The name to look uptype
- The type to look up
RRset
public void addRecord(Record r)
r
- The record to be addedRecord
protected void addSet(Name name, int type, org.xbill.DNS.TypedObject set)
public void removeRecord(Record r)
r
- The record to be removedRecord
public Iterator AXFR()
public String toMasterFile()
protected void setOrigin(Name origin)
protected void clear()
protected Object lookup(Name name, int type)
protected Object findExactSet(Name name, int type)
protected Object[] findExactSets(Name name)
protected void removeSet(Name name, int type, org.xbill.DNS.TypedObject set)
protected void removeName(Name name)
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |