Go to the documentation of this file.
32 #define TRACE_LEVEL DNS_TRACE_LEVEL
45 #if (DNS_CLIENT_SUPPORT == ENABLED || MDNS_CLIENT_SUPPORT == ENABLED || \
46 NBNS_CLIENT_SUPPORT == ENABLED || LLMNR_CLIENT_SUPPORT == ENABLED)
157 #if (DNS_CLIENT_SUPPORT == ENABLED || LLMNR_CLIENT_SUPPORT == ENABLED)
253 #if (DNS_CLIENT_SUPPORT == ENABLED)
262 #if (MDNS_CLIENT_SUPPORT == ENABLED)
271 #if (NBNS_CLIENT_SUPPORT == ENABLED && IPV4_SUPPORT == ENABLED)
280 #if (LLMNR_CLIENT_SUPPORT == ENABLED)
310 #if (DNS_CLIENT_SUPPORT == ENABLED)
error_t dnsSendQuery(DnsCacheEntry *entry)
Send a DNS query message.
HostType type
IPv4 or IPv6 host?
HostnameResolver
Name resolution protocols.
error_t llmnrSendQuery(DnsCacheEntry *entry)
Send a LLMNR query message.
systime_t timeout
Retransmission timeout.
@ HOST_NAME_RESOLVER_LLMNR
HostnameResolver protocol
Name resolution protocol.
void dnsFlushCache(NetInterface *interface)
Flush DNS cache.
#define timeCompare(t1, t2)
error_t nbnsSendQuery(DnsCacheEntry *entry)
Send a NBNS query message.
uint16_t port
Port number used by the resolver.
char_t name[DNS_MAX_NAME_LEN+1]
Domain name.
systime_t timestamp
Time stamp to manage entry lifetime.
@ HOST_NAME_RESOLVER_MDNS
NBNS client (NetBIOS Name Service)
@ ERROR_FAILURE
Generic error code.
error_t udpDetachRxCallback(NetInterface *interface, uint16_t port)
Unregister user callback.
#define osStrcasecmp(s1, s2)
DnsCacheEntry * dnsCreateEntry(void)
Create a new entry in the DNS cache.
mDNS client (Multicast DNS)
systime_t maxTimeout
Maximum retransmission timeout.
void dnsTick(void)
DNS timer handler.
DNS client (Domain Name System)
uint32_t systime_t
System time.
LLMNR client (Link-Local Multicast Name Resolution)
DnsCacheEntry * dnsFindEntry(NetInterface *interface, const char_t *name, HostType type, HostnameResolver protocol)
Search the DNS cache for a given domain name.
NetInterface * interface
Underlying network interface.
UDP (User Datagram Protocol)
@ HOST_NAME_RESOLVER_NBNS
error_t mdnsClientSendQuery(DnsCacheEntry *entry)
Send a mDNS query message.
void dnsDeleteEntry(DnsCacheEntry *entry)
Delete the specified DNS cache entry.
DnsCacheEntry dnsCache[DNS_CACHE_SIZE]
DnsState state
Entry state.
void dnsSelectNextServer(DnsCacheEntry *entry)
Select the next DNS server.
uint_t retransmitCount
Retransmission counter.
#define osMemset(p, value, length)
error_t dnsInit(void)
DNS cache initialization.
systime_t osGetSystemTime(void)
Retrieve system time.