Go to the documentation of this file.
41 #ifndef DNS_CLIENT_SUPPORT
42 #define DNS_CLIENT_SUPPORT ENABLED
43 #elif (DNS_CLIENT_SUPPORT != ENABLED && DNS_CLIENT_SUPPORT != DISABLED)
44 #error DNS_CLIENT_SUPPORT parameter is not valid
48 #ifndef DNS_CLIENT_MAX_RETRIES
49 #define DNS_CLIENT_MAX_RETRIES 3
50 #elif (DNS_CLIENT_MAX_RETRIES < 1)
51 #error DNS_CLIENT_MAX_RETRIES parameter is not valid
55 #ifndef DNS_CLIENT_INIT_TIMEOUT
56 #define DNS_CLIENT_INIT_TIMEOUT 1000
57 #elif (DNS_CLIENT_INIT_TIMEOUT < 1000)
58 #error DNS_CLIENT_INIT_TIMEOUT parameter is not valid
62 #ifndef DNS_CLIENT_MAX_TIMEOUT
63 #define DNS_CLIENT_MAX_TIMEOUT 5000
64 #elif (DNS_CLIENT_MAX_TIMEOUT < 1000)
65 #error DNS_CLIENT_MAX_TIMEOUT parameter is not valid
69 #ifndef DNS_MIN_LIFETIME
70 #define DNS_MIN_LIFETIME 1000
71 #elif (DNS_MIN_LIFETIME < 0)
72 #error DNS_MIN_LIFETIME parameter is not valid
76 #ifndef DNS_MAX_LIFETIME
77 #define DNS_MAX_LIFETIME 3600000
78 #elif (DNS_MAX_LIFETIME < 1000 || DNS_MAX_LIFETIME < DNS_MIN_LIFETIME)
79 #error DNS_MAX_LIFETIME parameter is not valid
error_t dnsResolve(NetInterface *interface, const char_t *name, HostType type, IpAddr *ipAddr)
Resolve a host name using DNS.
Structure describing a buffer that spans multiple chunks.
void dnsProcessResponse(NetInterface *interface, const IpPseudoHeader *pseudoHeader, const UdpHeader *udpHeader, const NetBuffer *buffer, size_t offset, const NetRxAncillary *ancillary, void *param)
Process incoming DNS response message.
void dnsSelectNextServer(DnsCacheEntry *entry)
Select the next DNS server.
UDP (User Datagram Protocol)
error_t dnsSendQuery(DnsCacheEntry *entry)
Send a DNS query message.