|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.dns.tools.DNSRecordCommands
public class DNSRecordCommands
Command definition and logic for managing DNS records. Commands are case-insensitive.
| Constructor Summary | |
|---|---|
DNSRecordCommands(org.nhind.config.ConfigurationServiceProxy proxy)
Constructor that takes a reference to the configuration service proxy. |
|
| Method Summary | |
|---|---|
void |
addANAME(String[] args)
Adds an A records to the configuration service. |
void |
addMX(String[] args)
Adds an MX records to the configuration service. |
void |
addSOA(String[] args)
Adds an SOA records to the configuration service. |
void |
ensureANAME(String[] args)
Adds an A records to the configuration service only if the record does not exist. |
void |
ensureMX(String[] args)
Adds an MX records to the configuration service only if the record does not exist. |
void |
ensureSOA(String[] args)
Adds an SOA records to the configuration service only if the record does not exist. |
void |
getAll(String[] args)
Retrieves and prints all records in the configuration store. |
void |
getANAME(String[] args)
Looks up an A record by record id. |
void |
getMX(String[] args)
Looks up an MX record by record id. |
void |
getSOA(String[] args)
Looks up an SOA record by record id. |
void |
importAddress(String[] args)
Imports an A record from a file. |
void |
match(String[] args)
Looks up all records for a given domain and any sub domains. |
void |
matchAName(String[] args)
Looks up A records for a given host name. |
void |
matchMX(String[] args)
Looks up MX records for a given domain. |
void |
matchSOA(String[] args)
Looks up SOA records for a given domain. |
void |
mXImport(String[] args)
Imports an MX record from a file. |
void |
removeANAME(String[] args)
Removes an A record from the configuration service by record id. |
void |
removeMX(String[] args)
Removes an MX record from the configuration service by record id. |
void |
removeSOA(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(String[] args)
Imports an SOA record from a file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DNSRecordCommands(org.nhind.config.ConfigurationServiceProxy proxy)
proxy - Configuration service proxy for accessing the configuration service.| Method Detail |
|---|
public void mXImport(String[] args)
args - The first entry in the array contains the file path (required).public void sOAImport(String[] args)
args - The first entry in the array contains the file path (required).public void importAddress(String[] args)
args - The first entry in the array contains the file path (required).public void addMX(String[] args)
args - Contains the MX record attributes.public void ensureMX(String[] args)
args - Contains the MX record attributes.public void addSOA(String[] args)
args - Contains the SOA record attributes.public void ensureSOA(String[] args)
args - Contains the SOA record attributes.public void addANAME(String[] args)
args - Contains the A record attributes.public void ensureANAME(String[] args)
args - Contains the A record attributes.public void removeMX(String[] args)
args - The first entry in the array contains the record id (required).public void removeSOA(String[] args)
args - The first entry in the array contains the record id (required).public void removeANAME(String[] args)
args - The first entry in the array contains the record id (required).public void getMX(String[] args)
args - The first entry in the array contains the record id (required).public void getSOA(String[] args)
args - The first entry in the array contains the record id (required).public void getANAME(String[] args)
args - The first entry in the array contains the record id (required).public void getAll(String[] args)
args - Emptypublic void match(String[] args)
args - The first entry in the array contains the domain name (required).public void matchSOA(String[] args)
args - The first entry in the array contains the domain name (required).public void matchAName(String[] args)
args - The first entry in the array contains the domain name (required).public void matchMX(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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||