![]() |
Network Dual-Stack Component
Version 7.0 (Beta)
MDK-Professional Middleware for IPv4 and IPv6 Networking
|
Functions to start the DNS Client. More...
Functions to start the DNS Client.
Start the DNS Client by calling the function netDNSc_GetHostByName. DNS requests are routed to the DNS Server IP address of an active network interface. If you are using a PPP or SLIP interface and no Ethernet Interface interface, you must enable the "Use default Gateway on remote Network" option in the configuration file (Net_Config_PPP.h or Net_Config_SLIP.h).
You must also specify a callback function, which is called from the DNS Client when a DNS event occurs.
When the required host is found in the local DNS Cache, the callback function is called immediately with the result code netDNSc_EventSuccess and provides the IP address of the host to the function. In this case, no actual DNS request packet is sent to the remote DNS Server.