uIP DNS resolver code header file.
Macros | |
#define | RESOLV_CONF_SUPPORTS_MDNS (1) |
If RESOLV_CONF_SUPPORTS_MDNS is set, then queries for domain names in the local TLD will use MDNS and will respond to MDNS queries for this device's hostname, as described by draft-cheshire-dnsext-multicastdns. More... | |
Typedefs | |
typedef uint8_t | resolv_status_t |
Enumerations | |
enum | { RESOLV_STATUS_CACHED = 0, RESOLV_STATUS_UNCACHED, RESOLV_STATUS_EXPIRED, RESOLV_STATUS_NOT_FOUND, RESOLV_STATUS_RESOLVING, RESOLV_STATUS_ERROR } |
Functions | |
PROCESS_NAME (resolv_process) | |
CCIF void | resolv_conf (const uip_ipaddr_t *dnsserver) |
CCIF const char * | resolv_get_hostname (void) |
CCIF uip_ipaddr_t * | resolv_getserver (void) |
CCIF resolv_status_t | resolv_lookup (const char *name, uip_ipaddr_t **ipaddr) |
CCIF void | resolv_query (const char *name) |
CCIF void | resolv_set_hostname (const char *hostname) |
Variables | |
CCIF process_event_t | resolv_event_found |
Event that is broadcasted when a DNS name has been resolved. More... | |
#define RESOLV_CONF_SUPPORTS_MDNS (1) |
If RESOLV_CONF_SUPPORTS_MDNS is set, then queries for domain names in the local
TLD will use MDNS and will respond to MDNS queries for this device's hostname, as described by draft-cheshire-dnsext-multicastdns.
typedef uint8_t resolv_status_t |
anonymous enum |
Enumerator | |
---|---|
RESOLV_STATUS_CACHED |
Hostname is fresh and usable. This response is cached and will eventually expire to RESOLV_STATUS_EXPIRED. |
RESOLV_STATUS_UNCACHED |
Hostname was not found in the cache. Use resolv_query() to look it up. |
RESOLV_STATUS_EXPIRED |
Hostname was found, but it's status has expired. The address returned should not be used. Use resolv_query() to freshen it up. |
RESOLV_STATUS_NOT_FOUND |
The server has returned a not-found response for this domain name. This response is cached for the period described in the server. You may issue a new query at any time using resolv_query(), but you will generally want to wait until this domain's status becomes RESOLV_STATUS_EXPIRED. |
RESOLV_STATUS_RESOLVING |
This hostname is in the process of being resolved. Try again soon. |
RESOLV_STATUS_ERROR |
Some sort of server error was encountered while trying to look up this record. This response is cached and will eventually expire to RESOLV_STATUS_EXPIRED. |
PROCESS_NAME | ( | resolv_process | ) |
CCIF void resolv_conf | ( | const uip_ipaddr_t * | dnsserver | ) |
CCIF const char* resolv_get_hostname | ( | void | ) |
CCIF uip_ipaddr_t* resolv_getserver | ( | void | ) |
CCIF resolv_status_t resolv_lookup | ( | const char * | name, |
uip_ipaddr_t ** | ipaddr | ||
) |
CCIF void resolv_query | ( | const char * | name | ) |
CCIF void resolv_set_hostname | ( | const char * | hostname | ) |
CCIF process_event_t resolv_event_found |
Event that is broadcasted when a DNS name has been resolved.