DNS Block

DNS Block Usage

https://www.mikrodev.com/images/wiki/en/DNS_block.png

Block Custom Settings

https://www.mikrodev.com/images/wiki/en/DNS_settings.png

1.      Blok Name: The name of the block.

2.      Primary DNS Server: The Primary DNS server is entered in this section.

3.      Secondary DNS Server: Secondary DNS Server is entered to this section.

4.      URL : The URL to use is entered in the string table. The ID of the URL entered in the string table is selected here.

5.      Default IP : Default IP is entered in this section. If the DNS block cannot convert the URL to the IP address, Default IP is used.

6.      DNS Timeout : The DNS timeout value is entered in this section.

String Table Entering Value

https://www.mikrodev.com/images/wiki/en/DNS_stringTable.png

Click the Projects tab on the left of the Mikrodiagram software. String Table is selected from the top menu.

You can enter a URL under the String Text heading.

Use with TCP BLOCK

https://www.mikrodev.com/images/wiki/en/DNS_usage1.png

The dns block output is connected to the ip pin of the tcp socket block. The DNS block will convert the URL to IP, Fou. pin is active. The tcp block uses the ip address from the DNS block.

https://www.mikrodev.com/images/wiki/en/DNS_usage2.png

The TCP socket block can be used with the Mqtt block.