Class Dns
DNS utility methods.
Inheritance
System.Object
Dns
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public static class Dns : object
Methods
Resolve(String)
Resolves a host name to an IP address.
Declaration
public static Future<string[]> Resolve(string hostname)
Parameters
Type | Name | Description |
---|---|---|
System.String | hostname | The host name to resolve. |
Returns
Type | Description |
---|---|
Future<System.String[]> |
Resolve(String, Action2<String[], Object>, Object)
Resolves a host name to an IP address.
Declaration
public static void Resolve(string name, Action2<string[], object> callback, object state)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name to resolve. |
Action2<System.String[], System.Object> | callback | The callback to invoke when resolution is complete. |
System.Object | state | A custom state object to pass into the callback. |