Class DevDnsClient
Inheritance
System.Object
DevDnsClient
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 DevDnsClient : IDns
Constructors
| Improve this Doc View SourceDevDnsClient(IPeerSettings)
Declaration
public DevDnsClient(IPeerSettings peerSettings)
Parameters
Type | Name | Description |
---|---|---|
IPeerSettings | peerSettings |
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 = null)
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 = "seed1.catalystnetwork.io")
Parameters
Type | Name | Description |
---|---|---|
System.String | hostname |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IDnsQueryResponse> |