| An NDoc Documented Class Library |
|
SimpleDNSLookup.GetNameServerForDomain Method
Returns the Name Server for a given domain.
public static
string GetNameServerForDomain(
string domain);
Parameters
-
domain
- Domain for which the Name Server should be returned.
Return Value
Name Server for the given domain. null if no record is found.
Exceptions
| Exception Type |
Condition |
|
SocketException
|
If the response is not received within the Timeout period. |
|
Exception
|
If the Name Server can't be determined or any other internal error occurs. |
See Also
SimpleDNSLookup Class | Lavantech.Dns Namespace