DNS sock definitions. More...
DNS sock definitions.
Definition in file dns.h.
#include <errno.h>
#include <stdint.h>
#include <unistd.h>
#include "net/dns/msg.h"
#include "net/sock/udp.h"
Go to the source code of this file.
Functions | |
int | sock_dns_query (const char *domain_name, void *addr_out, int family) |
Get IP address for DNS name. | |
Variables | |
sock_udp_ep_t | sock_dns_server |
global DNS server endpoint | |
DNS defines | |
#define | SOCK_DNS_PORT (53) |
#define | SOCK_DNS_RETRIES (2) |
#define | SOCK_DNS_MAX_NAME_LEN (CONFIG_DNS_MSG_LEN - sizeof(dns_hdr_t) - 4) |