DNS resolver definitions.
Adam Dunkels' original copyright notice
Copyright (c) 2002-2003, Adam Dunkels. All rights reserved.
(contained in this file) still holds. For modifications:
Copyright © 2011 Albrecht Weinert, Bochum
Defines | |
#define | MAX_DNS_RETRIES 8 |
The maximum number of DNS retries. | |
Functions | |
void | resolv_appcall (void) |
uIP event function for the DNS resolver | |
void | resolv_conf (uint16_t *dnsserver) |
Configure which DNS server to use for queries. | |
void | resolv_found (char *name, uint16_t *ipaddr) |
Callback function which is called after hostname look-up. | |
uint16_t * | resolv_getserver (void) |
Obtain the currently configured DNS server. | |
void | resolv_init (void) |
Initialise the resolver. | |
uint16_t * | resolv_lookup (char *name) |
Look up a hostname in the array of known hostnames. | |
void | resolv_query (char *name) |
Queues a name so that a question for the name will be sent out. |