NETDB: Make sure that we have a valid DNS server address before attempting DNS queuries; Provide an optional default DNS server address in the configuration

This commit is contained in:
Gregory Nutt
2015-07-13 08:19:31 -06:00
parent 9a6cf5724e
commit fcaac468b1
4 changed files with 210 additions and 6 deletions
+4
View File
@@ -123,6 +123,10 @@
#define DNS_FLAG2_ERR_NONE 0x00
#define DNS_FLAG2_ERR_NAME 0x03
/* Default DNS server port number */
#define DNS_DEFAULT_PORT 53
/****************************************************************************
* Public Type Definitions
****************************************************************************/