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

DNS sock definitions. More...

Detailed Description

DNS sock definitions.

Author
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e
Hendrik van Essen hendr.nosp@m.ik.v.nosp@m.e@fu-.nosp@m.berl.nosp@m.in.de

Definition in file dns.h.

#include <errno.h>
#include <stdint.h>
#include <unistd.h>
#include "net/dns/msg.h"
#include "net/sock/udp.h"
+ Include dependency graph for dns.h:
+ This graph shows which files directly or indirectly include this file:

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)