T
- public abstract class DnsServerConfigIP<T extends IPAddress> extends Object implements DnsServerConfig
Constructor and Description |
---|
DnsServerConfigIP(List<T> forwarders,
List<NetworkPair<T>> allowedNetworks)
Creates a DNS configuration with a default set of forwarders and a set of allowed networks
|
Modifier and Type | Method and Description |
---|---|
List<NetworkPair<T>> |
getAllowedNetworks()
Gets a List of networks that are allowed to make DNS queries
|
List<T> |
getForwarders()
Gets the current recursive domain name servers to use to resolve queries
|
void |
setAllowedNetworks(List<NetworkPair<T>> allowedNetworks)
Sets a List of networks that are allowed to make DNS queries
|
void |
setForwarders(List<T> forwarders)
Sets the current recursive domain name servers to use to resolve queries
|
String |
toString() |
public DnsServerConfigIP(List<T> forwarders, List<NetworkPair<T>> allowedNetworks)
forwarders
- The recursive DNS servers to useallowedNetworks
- The LAN networks that are allowed to make queriespublic List<T> getForwarders()
getForwarders
in interface DnsServerConfig
List
of DNS forwarderspublic void setForwarders(List<T> forwarders)
forwarders
- The recursive DNS servers to usepublic List<NetworkPair<T>> getAllowedNetworks()
getAllowedNetworks
in interface DnsServerConfig
List
of NetworkPair
representing the networks that are allowed to
perform DNS queriespublic void setAllowedNetworks(List<NetworkPair<T>> allowedNetworks)
allowedNetworks
- The LAN networks that are allowed to make queriesCopyright © 2013. All Rights Reserved.