summaryrefslogtreecommitdiffstats
path: root/dns.h
blob: 615162df6573332497ce2e9aee93ab6ae6271b66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef DNS_H
#define DNS_H

#include "stralloc.h"
#include "ipalloc.h"

#define DNS_SOFT -1
#define DNS_HARD -2
#define DNS_MEM -3

short dns_last_query_validated();
void dns_use_search(int use_search);
int dns_cname(stralloc *sa);
int dns_mxip(ipalloc *ia, stralloc *sa, unsigned long random);
int dns_ip(ipalloc *ia, stralloc *sa);
int dns_ptr(stralloc *sa, struct ip_address *ip);
int dns_tlsa(stralloc *out, const stralloc *fqdn);

#endif