Class DnsClient
DnsClient class. Used to manage the DNS connection to a server.
Inherited Members
Namespace: Cosmos.System.Network.IPv4.UDP.DNS
Assembly: Cosmos.System2.dll
Syntax
public class DnsClient : UdpClient
Constructors
| Improve this Doc View SourceDnsClient()
Create new instance of the DnsClient class.
Declaration
public DnsClient()
Methods
| Improve this Doc View SourceConnect(Address)
Connect to client.
Declaration
public void Connect(Address address)
Parameters
Type | Name | Description |
---|---|---|
Address | address |
Receive(Int32)
Declaration
public Address Receive(int timeout = 5000)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | timeout |
Returns
Type | Description |
---|---|
Address |
SendAsk(String)
Send DNS Ask for Domain Name string
Declaration
public void SendAsk(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | Domain Name string. |