microsoft.exchange.webservices.data.dns
Class DnsClient

java.lang.Object
  extended by microsoft.exchange.webservices.data.dns.DnsClient

public class DnsClient
extends Object

Class that represents DNS Query client.


Constructor Summary
DnsClient()
           
 
Method Summary
static
<T extends microsoft.exchange.webservices.data.dns.DnsRecord>
List<T>
dnsQuery(Class<T> cls, String domain, String dnsServerAddress)
          Performs Dns query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnsClient

public DnsClient()
Method Detail

dnsQuery

public static <T extends microsoft.exchange.webservices.data.dns.DnsRecord> List<T> dnsQuery(Class<T> cls,
                                                                                             String domain,
                                                                                             String dnsServerAddress)
                                                                                  throws DnsException
Performs Dns query.

Type Parameters:
T - the generic type
Parameters:
cls - DnsRecord Type
domain - the domain
dnsServerAddress - IPAddress of DNS server to use (may be null)
Returns:
DnsRecord The DNS record list (never null but may be empty)
Throws:
DnsException - the dns exception


Copyright © 2012–2015 Microsoft. All rights reserved.