net/DNS
-
class DNS
-
-
static method new → DNS
-
method init
-
static method resolve(hostname: String) → HostInfo
- Perform DNS lookup using the hostname.
Returns information about the host that was found.
-
static method resolve~filter(hostname: String, socketType, socketFamily: Int) → HostInfo
-
static method resolveOne(host: String) → IPAddress
- Perform DNS lookup using the hostname.
Returns the first IPAddress found for the host.
-
static method resolveOne~filter(host: String, socketType, socketFamily: Int) → IPAddress
-
static method reverse(ip: IPAddress) → String
- Perform a reverse DNS lookup by using the host’s address.
Returns the hostname of the specified address.
-
static method reverse~withSockAddr(sockaddr: SocketAddress) → String
-
static method hostname → String
- Returns the hostname of this system.
-
static method localhost → HostInfo
- Retreive host information about this system.
-
class HostInfo
-
-
static method new(addrinfo: AddrInfo *) → HostInfo
-
method init(addrinfo: AddrInfo *)
-
method addresses → LinkedList<T>
- Returns a list of IPAddress associated with this host.
-
name → String
-
addresses → LinkedList<T>