TestimoX

API Reference

Class

DnsHelper

Namespace ComputerX.Network
Assembly ComputerX
Modifiers static

DNS convenience helpers for resolving host names and determining locality.

Inheritance

  • Object
  • DnsHelper

Methods

public static Boolean IsLocalHost(String host) #
Returns: Boolean

Determines whether the given host refers to the local computer (name, FQDN, or IP).

Parameters

host System.String requiredposition: 0
public static String ResolveHost(String host) #
Returns: String

Resolves a short host name to an FQDN when possible; returns the input when already FQDN or unresolved.

Parameters

host System.String requiredposition: 0