Class DnsClient
Inheritance
System.Object
DnsClient
Implements
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: Catalyst.Core.Lib.Network
Assembly: Catalyst.Core.Lib.dll
Syntax
public sealed class DnsClient : IDns
Constructors
| Improve this Doc View SourceDnsClient(ILookupClient)
Declaration
public DnsClient(ILookupClient client)
Parameters
Type | Name | Description |
---|---|---|
ILookupClient | client |
Methods
| Improve this Doc View SourceGetSeedNodesFromDns(IEnumerable<String>)
Declaration
public IEnumerable<PeerId> GetSeedNodesFromDns(IEnumerable<string> seedServers)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | seedServers |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PeerId> |
GetTxtRecordsAsync(IList<String>)
Declaration
public Task<IList<IDnsQueryResponse>> GetTxtRecordsAsync(IList<string> hostnames)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.String> | hostnames |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IList<IDnsQueryResponse>> |
GetTxtRecordsAsync(String)
Declaration
public Task<IDnsQueryResponse> GetTxtRecordsAsync(string hostname)
Parameters
Type | Name | Description |
---|---|---|
System.String | hostname |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IDnsQueryResponse> |