Use this function to resolve a server IP address from its domain name. The DNS Resolver uses RFC 1035.
The function must remain active in the program scan until the address is resolved.
Notes ♦ |
The socket:
In addition, make certain that the operand assignments in the DNS Resolver function do not overlap. |
The Target Name string provides the name that is looked up. Make sure that there is enough room for the entire string. For example, unitronics.com is 14 characters long and therefore requires 7 MIs (www. is optional)
Status messages
0 – OK
1 – In progress
2 – No answer
3 – Name does not exist
4 – Ethernet inactive, or socket is not UDP
5 – Protocol Error