class DnsClient extends AnyRef
Provides a way to asynchronously lookup information from DNS servers.
Please consult the documentation for more information on DNS clients.
- Alphabetic
- By Inheritance
- DnsClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DnsClient(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lookup(name: String, handler: Handler[AsyncResult[Option[String]]]): DnsClient
Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.
Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name. The first found will be used. * @param name the name to resolve
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with the resolved address if a record was found. If non was found it will get notifed with
null
. If an error accours it will get failed.- returns
a reference to this, so the API can be used fluently
-
def
lookup4(name: String, handler: Handler[AsyncResult[Option[String]]]): DnsClient
Try to lookup the A (ipv4) record for the given name.
Try to lookup the A (ipv4) record for the given name. The first found will be used. * @param name the name to resolve
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with the resolved java.net.Inet4Address if a record was found. If non was found it will get notifed with
null
. If an error accours it will get failed.- returns
a reference to this, so the API can be used fluently
-
def
lookup4Future(name: String): scala.concurrent.Future[Option[String]]
Like lookup4 but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lookup6(name: String, handler: Handler[AsyncResult[Option[String]]]): DnsClient
Try to lookup the AAAA (ipv6) record for the given name.
Try to lookup the AAAA (ipv6) record for the given name. The first found will be used. * @param name the name to resolve
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with the resolved java.net.Inet6Address if a record was found. If non was found it will get notifed with
null
. If an error accours it will get failed.- returns
a reference to this, so the API can be used fluently
-
def
lookup6Future(name: String): scala.concurrent.Future[Option[String]]
Like lookup6 but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
lookupFuture(name: String): scala.concurrent.Future[Option[String]]
Like lookup but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
resolveA(name: String, handler: Handler[AsyncResult[Buffer[String]]]): DnsClient
Try to resolve all A (ipv4) records for the given name.
Try to resolve all A (ipv4) records for the given name. * @param name the name to resolve
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with a scala.collection.immutable.List that contains all the resolved java.net.Inet4Addresses. If none was found an empty scala.collection.immutable.List will be used. If an error accours it will get failed.
- returns
a reference to this, so the API can be used fluently
-
def
resolveAAAA(name: String, handler: Handler[AsyncResult[Buffer[String]]]): DnsClient
Try to resolve all AAAA (ipv6) records for the given name.
Try to resolve all AAAA (ipv6) records for the given name. * @param name the name to resolve
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with a scala.collection.immutable.List that contains all the resolved java.net.Inet6Addresses. If none was found an empty scala.collection.immutable.List will be used. If an error accours it will get failed.
- returns
a reference to this, so the API can be used fluently
-
def
resolveAAAAFuture(name: String): scala.concurrent.Future[Buffer[String]]
Like resolveAAAA but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
resolveAFuture(name: String): scala.concurrent.Future[Buffer[String]]
Like resolveA but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
resolveCNAME(name: String, handler: Handler[AsyncResult[Buffer[String]]]): DnsClient
Try to resolve the CNAME record for the given name.
Try to resolve the CNAME record for the given name. * @param name the name to resolve the CNAME for
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with the resolved String if a record was found. If none was found it will get notified with
null
. If an error accours it will get failed.- returns
a reference to this, so the API can be used fluently.
-
def
resolveCNAMEFuture(name: String): scala.concurrent.Future[Buffer[String]]
Like resolveCNAME but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
resolveMX(name: String, handler: Handler[AsyncResult[Buffer[MxRecord]]]): DnsClient
Try to resolve the MX records for the given name.
Try to resolve the MX records for the given name. * @param name the name for which the MX records should be resolved
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with a List that contains all resolved MxRecords, sorted by their MxRecord#priority(). If non was found it will get notified with an empty scala.collection.immutable.List. If an error accours it will get failed.
- returns
a reference to this, so the API can be used fluently.
-
def
resolveMXFuture(name: String): scala.concurrent.Future[Buffer[MxRecord]]
Like resolveMX but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
resolveNS(name: String, handler: Handler[AsyncResult[Buffer[String]]]): DnsClient
Try to resolve the NS records for the given name.
Try to resolve the NS records for the given name. * @param name the name for which the NS records should be resolved
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with a List that contains all resolved Strings. If none was found it will get notified with an empty scala.collection.immutable.List. If an error accours it will get failed.
- returns
a reference to this, so the API can be used fluently.
-
def
resolveNSFuture(name: String): scala.concurrent.Future[Buffer[String]]
Like resolveNS but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
resolvePTR(name: String, handler: Handler[AsyncResult[Option[String]]]): DnsClient
Try to resolve the PTR record for the given name.
Try to resolve the PTR record for the given name. * @param name the name to resolve the PTR for
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with the resolved String if a record was found. If none was found it will get notified with
null
. If an error accours it will get failed.- returns
a reference to this, so the API can be used fluently.
-
def
resolvePTRFuture(name: String): scala.concurrent.Future[Option[String]]
Like resolvePTR but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
resolveSRV(name: String, handler: Handler[AsyncResult[Buffer[SrvRecord]]]): DnsClient
Try to resolve the SRV records for the given name.
Try to resolve the SRV records for the given name. * @param name the name for which the SRV records should be resolved
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with a List that contains all resolved SrvRecords. If none was found it will get notified with an empty scala.collection.immutable.List. If an error accours it will get failed.
- returns
a reference to this, so the API can be used fluently.
-
def
resolveSRVFuture(name: String): scala.concurrent.Future[Buffer[SrvRecord]]
Like resolveSRV but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
resolveTXT(name: String, handler: Handler[AsyncResult[Buffer[String]]]): DnsClient
Try to resolve the TXT records for the given name.
Try to resolve the TXT records for the given name. * @param name the name for which the TXT records should be resolved
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with a List that contains all resolved Strings. If none was found it will get notified with an empty scala.collection.immutable.List. If an error accours it will get failed.
- returns
a reference to this, so the API can be used fluently.
-
def
resolveTXTFuture(name: String): scala.concurrent.Future[Buffer[String]]
Like resolveTXT but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
def
reverseLookup(ipaddress: String, handler: Handler[AsyncResult[Option[String]]]): DnsClient
Try to do a reverse lookup of an IP address.
Try to do a reverse lookup of an IP address. This is basically the same as doing trying to resolve a PTR record but allows you to just pass in the IP address and not a valid ptr query string. * @param ipaddress the IP address to resolve the PTR for
- handler
the scala-function to notify with the io.vertx.lang.scala.AsyncResult. The handler will get notified with the resolved String if a record was found. If none was found it will get notified with
null
. If an error accours it will get failed.- returns
a reference to this, so the API can be used fluently.
-
def
reverseLookupFuture(ipaddress: String): scala.concurrent.Future[Option[String]]
Like reverseLookup but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )