Generic DNS values. More...
Generic DNS values.
Definition in file dns.h.
#include "modules.h"
#include "net/sock/dns.h"
#include "net/sock/dodtls.h"
#include "net/gcoap/dns.h"
Go to the source code of this file.
Functions | |
static int | dns_query (const char *domain_name, void *addr_out, int family) |
Get IP address for DNS name. | |
DNS defines | |
#define | DNS_TYPE_A (1) |
#define | DNS_TYPE_AAAA (28) |
#define | DNS_CLASS_IN (1) |
Field lengths | |
#define | RR_TYPE_LENGTH (2U) |
#define | RR_CLASS_LENGTH (2U) |
#define | RR_TTL_LENGTH (4U) |
#define | RR_RDLENGTH_LENGTH (2U) |