-
-
Lookup a server address
Parameters:
Name |
Type |
Description |
name |
string
|
The server name to be looked up |
handler |
ResultHandler
|
The handler to be called when the lookup has completed.
The result parameter provided to the handler is a string address. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
Example
// use google dns
var client = dns.createClient(['8.8.8.8', '8.8.4.4']);
client.lookup('vertx.io', function(err, address) {
if (err) {
console.log("Can't find the server");
} else {
console.log("Address: " + address);
}
}
-
-
Look up the IPv4 address for name
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with a string address
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Look up the IPv6 address for name
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with a string address
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to resolve all A records for the given name.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with an array of Strings
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to resolve all AAAA records for the given name.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with an array of Strings
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to resolve all AAAA records for the given name.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with an array of Strings
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to resolve all MX records for the given name.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with an array of MxRecord objects
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to resolve all NS records for the given name.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with an array of string addresses
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to resolve the PTR record for the given name.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with a string
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to resolve all SRV records for the given name.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with an array of SRV records
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to resolve all TXT records for the given name.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with an array of string TXT records
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient
-
-
Try to do a reverse lookup of an ipaddress. This is basically the same as
doing trying to resolve a PTR record but allows you to just pass in the
ipaddress and not a valid ptr query string.
Parameters:
Name |
Type |
Description |
name |
string
|
|
handler |
ResultHandler
|
The handler is called with a string
when the lookup completes. |
- Source:
Returns:
-
Type
-
module:vertx/dns.DnsClient