Class SrvLookup
Looks up DNS SRV records over UDP at the system's name servers, for resolving server names that delegate with _matrix-fed._tcp.
Inherited Members
Namespace: Uniform.Matrix.Server.Federation
Assembly: Uniform.Matrix.Server.dll
Syntax
public class SrvLookup
Remarks
Each name server of the network interfaces that are up is asked in turn until one answers; truncated answers are not retried over TCP, as SRV answers are small.
Constructors
| Edit this page View SourceSrvLookup(ILogger<SrvLookup>)
Create the lookup.
Declaration
public SrvLookup(ILogger<SrvLookup> logger)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogger<SrvLookup> | logger |
Methods
| Edit this page View SourceLookupAsync(string, CancellationToken)
Return the SRV records of name, best first; empty when it has none or no name server answers.
Declaration
public virtual Task<IReadOnlyList<SrvRecord>> LookupAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | E.g. |
| CancellationToken | cancellationToken | Cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<IReadOnlyList<SrvRecord>> |