Loading...
Searching...
No Matches
dns.h File Reference

Generic DNS values. More...

Detailed Description

Generic DNS values.

Author
Martine Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de

Definition in file dns.h.

#include "modules.h"
#include "net/sock/dns.h"
#include "net/sock/dodtls.h"
#include "net/gcoap/dns.h"
+ Include dependency graph for 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)