public class SecureableZone
extends org.xbill.DNS.Zone
Constructor and Description |
---|
SecureableZone(org.xbill.DNS.Name zone,
int dclass,
String remote)
Creates a Zone by performing a zone transfer to the specified host.
|
SecureableZone(org.xbill.DNS.Name zone,
org.xbill.DNS.Record[] records)
Creates a Zone from an array of records.
|
SecureableZone(org.xbill.DNS.Name zone,
String file)
Creates a Zone from the records in the specified master file.
|
SecureableZone(org.xbill.DNS.ZoneTransferIn xfrin)
Creates a Zone by doing the specified zone transfer.
|
Modifier and Type | Method and Description |
---|---|
void |
addRecord(org.xbill.DNS.Record r)
Adds a Record to the Zone.
|
org.xbill.DNS.Record |
getNXTRecord(org.xbill.DNS.Record queryRecord,
org.xbill.DNS.Zone zone)
Return a NXT record appropriate for the query.
|
void |
removeRecord(org.xbill.DNS.Record r)
Removes a record from the Zone.
|
public SecureableZone(org.xbill.DNS.ZoneTransferIn xfrin) throws IOException, org.xbill.DNS.ZoneTransferException
xfrin
- The incoming zone transfer to execute.IOException
- if there is an error.org.xbill.DNS.ZoneTransferException
- if there is an error.public SecureableZone(org.xbill.DNS.Name zone, int dclass, String remote) throws IOException, org.xbill.DNS.ZoneTransferException
zone
- zone name.dclass
- the dclassremote
- the remote host.IOException
- if there is an error.org.xbill.DNS.ZoneTransferException
- if there is an error.public SecureableZone(org.xbill.DNS.Name zone, String file) throws IOException
zone
- The name of the zone.file
- The master file to read from.IOException
- if there is an error.public SecureableZone(org.xbill.DNS.Name zone, org.xbill.DNS.Record[] records) throws IOException
zone
- The name of the zone.records
- The records to add to the zone.IOException
- if there is an error.public void addRecord(org.xbill.DNS.Record r)
addRecord
in class org.xbill.DNS.Zone
r
- The record to be addedRecord
public void removeRecord(org.xbill.DNS.Record r)
removeRecord
in class org.xbill.DNS.Zone
r
- The record to be removedRecord
public org.xbill.DNS.Record getNXTRecord(org.xbill.DNS.Record queryRecord, org.xbill.DNS.Zone zone)
queryRecord
- the query record.zone
- the zone to search.Copyright © 2008–2019 Apache Software Foundation. All rights reserved.