public class DNSRecordCommands
extends java.lang.Object
| Constructor and Description |
|---|
DNSRecordCommands(org.nhind.config.ConfigurationServiceProxy proxy)
Constructor that takes a reference to the configuration service proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addANAME(java.lang.String[] args)
Adds an A records to the configuration service.
|
void |
addMX(java.lang.String[] args)
Adds an MX records to the configuration service.
|
void |
addSOA(java.lang.String[] args)
Adds an SOA records to the configuration service.
|
void |
ensureANAME(java.lang.String[] args)
Adds an A records to the configuration service only if the record does not exist.
|
void |
ensureMX(java.lang.String[] args)
Adds an MX records to the configuration service only if the record does not exist.
|
void |
ensureSOA(java.lang.String[] args)
Adds an SOA records to the configuration service only if the record does not exist.
|
void |
getAll(java.lang.String[] args)
Retrieves and prints all records in the configuration store.
|
void |
getANAME(java.lang.String[] args)
Looks up an A record by record id.
|
void |
getMX(java.lang.String[] args)
Looks up an MX record by record id.
|
void |
getSOA(java.lang.String[] args)
Looks up an SOA record by record id.
|
void |
importAddress(java.lang.String[] args)
Imports an A record from a file.
|
void |
match(java.lang.String[] args)
Looks up all records for a given domain and any sub domains.
|
void |
matchAName(java.lang.String[] args)
Looks up A records for a given host name.
|
void |
matchMX(java.lang.String[] args)
Looks up MX records for a given domain.
|
void |
matchSOA(java.lang.String[] args)
Looks up SOA records for a given domain.
|
void |
mXImport(java.lang.String[] args)
Imports an MX record from a file.
|
void |
removeANAME(java.lang.String[] args)
Removes an A record from the configuration service by record id.
|
void |
removeMX(java.lang.String[] args)
Removes an MX record from the configuration service by record id.
|
void |
removeSOA(java.lang.String[] args)
Removes an SOA record from the configuration service by record id.
|
void |
setConfigurationProxy(org.nhind.config.ConfigurationServiceProxy proxy)
Sets the printer that will be used to print record query responses.
|
void |
setRecordPrinter(DNSRecordPrinter printer)
Sets the printer that will be used to print record query responses.
|
void |
sOAImport(java.lang.String[] args)
Imports an SOA record from a file.
|
public DNSRecordCommands(org.nhind.config.ConfigurationServiceProxy proxy)
proxy - Configuration service proxy for accessing the configuration service.public void mXImport(java.lang.String[] args)
args - The first entry in the array contains the file path (required).public void sOAImport(java.lang.String[] args)
args - The first entry in the array contains the file path (required).public void importAddress(java.lang.String[] args)
args - The first entry in the array contains the file path (required).public void addMX(java.lang.String[] args)
args - Contains the MX record attributes.public void ensureMX(java.lang.String[] args)
args - Contains the MX record attributes.public void addSOA(java.lang.String[] args)
args - Contains the SOA record attributes.public void ensureSOA(java.lang.String[] args)
args - Contains the SOA record attributes.public void addANAME(java.lang.String[] args)
args - Contains the A record attributes.public void ensureANAME(java.lang.String[] args)
args - Contains the A record attributes.public void removeMX(java.lang.String[] args)
args - The first entry in the array contains the record id (required).public void removeSOA(java.lang.String[] args)
args - The first entry in the array contains the record id (required).public void removeANAME(java.lang.String[] args)
args - The first entry in the array contains the record id (required).public void getMX(java.lang.String[] args)
args - The first entry in the array contains the record id (required).public void getSOA(java.lang.String[] args)
args - The first entry in the array contains the record id (required).public void getANAME(java.lang.String[] args)
args - The first entry in the array contains the record id (required).public void getAll(java.lang.String[] args)
args - Emptypublic void match(java.lang.String[] args)
args - The first entry in the array contains the domain name (required).public void matchSOA(java.lang.String[] args)
args - The first entry in the array contains the domain name (required).public void matchAName(java.lang.String[] args)
args - The first entry in the array contains the domain name (required).public void matchMX(java.lang.String[] args)
args - The first entry in the array contains the domain name (required).public void setRecordPrinter(DNSRecordPrinter printer)
printer - The printer that will be used to print record query responses.public void setConfigurationProxy(org.nhind.config.ConfigurationServiceProxy proxy)
printer - The printer that will be used to print record query responses.Copyright © 2010-2018 The Direct Project. All Rights Reserved.