Class STUNDns
Inheritance
System.Object
STUNDns
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class STUNDns
Fields
| Improve this Doc View SourceDNS_RETRIES_PER_SERVER
Declaration
public const int DNS_RETRIES_PER_SERVER = 1
Field Value
| Type | Description |
|---|---|
| System.Int32 |
DNS_TIMEOUT_SECONDS
Declaration
public const int DNS_TIMEOUT_SECONDS = 1
Field Value
| Type | Description |
|---|---|
| System.Int32 |
MDNS_TLD
Declaration
public const string MDNS_TLD = "local"
Field Value
| Type | Description |
|---|---|
| System.String |
Properties
| Improve this Doc View SourceDnsUseTcpFallback
Set to true to attempt a DNS lookup over TCP if the UDP lookup fails.
Declaration
public static bool DnsUseTcpFallback { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceResolve(STUNUri, Boolean)
Resolve method that can be used to request an AAAA result and fallback to a A lookup if none found.
Declaration
public static Task<IPEndPoint> Resolve(STUNUri uri, bool preferIPv6 = false)
Parameters
| Type | Name | Description |
|---|---|---|
| STUNUri | uri | The URI to lookup. |
| System.Boolean | preferIPv6 | True if IPv6 (AAAA record lookup) is preferred. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Net.IPEndPoint> | An IPEndPoint or null. |