public interface IDnsProxyService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_NAME
service name of this interface for the bundle activator (com.esf.networking.dnsproxy.service.IDnsProxyService)
|
Modifier and Type | Method and Description |
---|---|
boolean |
configFileDoesExist()
checks for the existence of DNS proxy configuration file
|
void |
configure(java.lang.String authoritative,
int authoritativePort,
int authoritativeTout,
java.lang.String recursive,
int recursivePort,
int recursiveTout,
java.lang.String listen,
int listenPort,
java.util.ArrayList securityFeatures,
java.util.ArrayList internalNetworks) |
java.lang.String |
getAuthoritative()
gets the currently defined authoritative DNS server
|
int |
getAuthoritativePort()
gets the currently defined authoritative DNS server port number
|
int |
getAuthoritativeTimeout()
gets the authoritative DNS server timeout
|
java.util.ArrayList |
getInternalNetworks()
gets the current list of networks on which dnsproxy will perform DNS queries
|
java.lang.String |
getListen()
gets the IP address on which dnsproxy is configured to listen on
|
int |
getListenPort()
gets the port number on which dnsproxy listens
|
java.lang.String |
getRecursive()
gets the currently defined DNS server IP address
|
int |
getRecursivePort()
gets the current recursive DNS server port number
|
int |
getRecursiveTimeout()
gets the recursive DNS server timeout
|
java.util.ArrayList |
getSecurityFeatures()
gets the list of currently defined dnsproxy security features
|
void |
setAuthoritative(java.lang.String authoritative)
sets the authoritative DNS server
|
void |
setAuthoritativePort(int authoritativePort)
sets the authoritative DNS server port number
|
void |
setAuthoritativeTimeout(int authoritativeTimeout)
sets the authoritative DNS server timeout
|
void |
setInternalNetwork(java.lang.String internalNetwork)
Sets 'internal network' entry in appropriate configuration file
|
void |
setListen(java.lang.String listen)
sets the IP address on which dnsproxy is configured to listen
|
void |
setListenPort(int listenPort)
sets the port number on which dnsproxy listens
|
void |
setRecursive(java.lang.String recursive)
sets the recursive DNS server
|
void |
setRecursivePort(int recursivePort)
sets the recursive DNS server port number
|
void |
setRecursiveTimeout(int recursiveTimeout)
sets the recursive DNS server timeout
|
void |
setSecurityFeature(DnsProxySecurityFeature securityFeature)
Sets 'security feature' in appropriate configuration file
|
void |
start()
Starts the DNS proxy service on the given interface
|
void |
stop()
Stops the DNS proxy service on the given interface
|
static final java.lang.String SERVICE_NAME
void configure(java.lang.String authoritative, int authoritativePort, int authoritativeTout, java.lang.String recursive, int recursivePort, int recursiveTout, java.lang.String listen, int listenPort, java.util.ArrayList securityFeatures, java.util.ArrayList internalNetworks) throws java.lang.Exception
authoritative
- authoritative IP address to use for DNSauthoritativePort
- IP port of authoritative DNS serverauthoritativeTout
- timeout to wait for DNS responses from authoritative serverrecursive
- recursive IP address to use for DNSrecursivePort
- IP port of recursive DNS serverrecursiveTout
- timeout to wait for DNS responses from recursive serverlisten
- IP address on which dnsproxy is to listenlistenPort
- port number of listen IPsecurityFeatures
- list of DNS security featuresinternalNetworks
- internal networks on which to listen for DNSjava.lang.Exception
void setSecurityFeature(DnsProxySecurityFeature securityFeature) throws java.lang.Exception
securityFeature
- as DnsProxySecurityFeature
java.lang.Exception
void setInternalNetwork(java.lang.String internalNetwork) throws java.lang.Exception
internalNetwork
- IP network on which to listen for DNSjava.lang.Exception
boolean configFileDoesExist() throws java.lang.Exception
true
if configuration file exists; false
otherwisejava.lang.Exception
java.lang.String getAuthoritative() throws java.lang.Exception
String
java.lang.Exception
void setAuthoritative(java.lang.String authoritative) throws java.lang.Exception
authoritative
- IP address of the new authoritative DNS server to use as String
java.lang.Exception
int getAuthoritativePort() throws java.lang.Exception
java.lang.Exception
void setAuthoritativePort(int authoritativePort) throws java.lang.Exception
authoritativePort
- the port number of the authoritative DNS serverjava.lang.Exception
int getAuthoritativeTimeout() throws java.lang.Exception
java.lang.Exception
void setAuthoritativeTimeout(int authoritativeTimeout) throws java.lang.Exception
authoritativeTimeout
- the authoritative DNS server timeoutjava.lang.Exception
java.lang.String getListen() throws java.lang.Exception
String
java.lang.Exception
void setListen(java.lang.String listen) throws java.lang.Exception
listen
- IP address on which dnsproxy is set to listen, as String
java.lang.Exception
int getListenPort() throws java.lang.Exception
java.lang.Exception
void setListenPort(int listenPort) throws java.lang.Exception
listenPort
- the port number on which dnsproxy listensjava.lang.Exception
void setRecursive(java.lang.String recursive) throws java.lang.Exception
recursive
- recursive DNS server IP address, as String
java.lang.Exception
java.lang.String getRecursive() throws java.lang.Exception
String
java.lang.Exception
int getRecursivePort() throws java.lang.Exception
java.lang.Exception
void setRecursivePort(int recursivePort) throws java.lang.Exception
recursivePort
- the current recursive DNS server port numberjava.lang.Exception
int getRecursiveTimeout() throws java.lang.Exception
java.lang.Exception
void setRecursiveTimeout(int recursiveTimeout) throws java.lang.Exception
recursiveTimeout
- the recursive DNS server timeoutjava.lang.Exception
java.util.ArrayList getSecurityFeatures() throws java.lang.Exception
ArrayList
of String
variables representing the currently defined security featuresjava.lang.Exception
java.util.ArrayList getInternalNetworks() throws java.lang.Exception
ArrayList
of String
variables representing the networks on which dnsproxy will perform queries forjava.lang.Exception
void start() throws java.lang.Exception
java.lang.Exception
- if the service fails to startvoid stop() throws java.lang.Exception
java.lang.Exception
- if the service fails to stopCopyright © 2009 Eurotech Inc. All rights reserved.