public class DNSRecordCommands extends Object
| Constructor and Description |
|---|
DNSRecordCommands(org.nhind.config.rest.DNSService proxy)
Constructor that takes a reference to the configuration service proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addANAME(String[] args)
Adds an A records to the configuration service.
|
void |
addCNAME(String[] args)
Adds a CNAME records to the configuration service.
|
void |
addMX(String[] args)
Adds an MX records to the configuration service.
|
void |
addNS(String[] args)
Adds an NS records to the configuration service.
|
void |
addSOA(String[] args)
Adds an SOA records to the configuration service.
|
void |
addSRV(String[] args)
Adds an SRV record to the configuration service.
|
void |
addTXT(String[] args)
Adds a TXT 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 |
ensureCNAME(String[] args)
Adds a CNAME 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 |
ensureNS(String[] args)
Adds an NS 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 |
ensureSRV(String[] args)
Adds an SRV record to the configuration service only if the record does not exist.
|
void |
ensureTXT(String[] args)
Adds a TXT 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 |
getSoaContacts(String[] args) |
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.rest.DNSService 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.
|
public DNSRecordCommands(org.nhind.config.rest.DNSService proxy)
proxy - Configuration service proxy for accessing the configuration service.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 addTXT(String[] args)
args - Contains the TXT record attributes.public void ensureTXT(String[] args)
args - Contains the TXT record attributes.public void addCNAME(String[] args)
args - Contains the CNAME record attributes.public void ensureCNAME(String[] args)
args - Contains the CNAME record attributes.public void addNS(String[] args)
args - Contains the NS record attributes.public void ensureNS(String[] args)
args - Contains the NS 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 getAll(String[] args)
args - Emptypublic void getSoaContacts(String[] args)
public 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 addSRV(String[] args)
args - Contains the SRV record attributes.public void ensureSRV(String[] args)
args - Contains the SRV record attributes.public void setRecordPrinter(DNSRecordPrinter printer)
printer - The printer that will be used to print record query responses.public void setConfigurationProxy(org.nhind.config.rest.DNSService proxy)
printer - The printer that will be used to print record query responses.Copyright © 2019. All rights reserved.