DNS: Allow a DNS look-up with a trailing dot in the name

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Craig McQueen
2018-11-16 03:15:29 +01:00
committed by Simon Goldschmidt
parent 9071db11af
commit ef76bbe3f0
2 changed files with 43 additions and 15 deletions

View File

@@ -1178,7 +1178,9 @@
* DNS_LOCAL_HOSTLIST_ELEM("host_ip6", IPADDR6_INIT_HOST(123, 234, 345, 456)}
*
* Instead, you can also use an external function:
* \#define DNS_LOOKUP_LOCAL_EXTERN(x) extern err_t my_lookup_function(const char *name, ip_addr_t *addr, u8_t dns_addrtype)
* \#define DNS_LOOKUP_LOCAL_EXTERN(name, namelen, addr, dns_addrtype) my_lookup_function(name, namelen, addr, dns_addrtype)
* with function signature:
* extern err_t my_lookup_function(const char *name, size_t namelen, ip_addr_t *addr, u8_t dns_addrtype)
* that looks up the IP address and returns ERR_OK if found (LWIP_DNS_ADDRTYPE_xxx is passed in dns_addrtype).
*/
#if !defined DNS_LOCAL_HOSTLIST || defined __DOXYGEN__