-
Notifications
You must be signed in to change notification settings - Fork 25
/
dns_records.hrl
130 lines (125 loc) · 3.74 KB
/
dns_records.hrl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
-ifndef('__dns_records.hrl__').
-define('__dns_records.hrl__', ok).
-include("dns_terms.hrl").
-record(dns_message, {
id = dns:random_id() :: dns:message_id(),
qr = false :: 0..1 | boolean(),
oc = ?DNS_OPCODE_QUERY :: dns:opcode(),
aa = false :: 0..1 | boolean(),
tc = false :: 0..1 | boolean(),
rd = false :: 0..1 | boolean(),
ra = false :: 0..1 | boolean(),
ad = false :: 0..1 | boolean(),
cd = false :: 0..1 | boolean(),
rc = ?DNS_RCODE_NOERROR :: dns:rcode(),
qc = 0 :: 0..65535,
anc = 0 :: 0..65535,
auc = 0 :: 0..65535,
adc = 0 :: 0..65535,
questions = [] :: dns:questions(),
answers = [] :: dns:answers(),
authority = [] :: dns:authority(),
additional = [] :: dns:additional()
}).
-record(dns_query, {
name :: dns:dname(),
class = ?DNS_CLASS_IN :: dns:class(),
type :: dns:type()
}).
-record(dns_rr, {
name :: dns:dname(),
class = ?DNS_CLASS_IN :: dns:class(),
type :: dns:type(),
ttl = 0 :: dns:ttl(),
data :: dns:rrdata()
}).
-record(dns_rrdata_a, {ip}).
-record(dns_rrdata_aaaa, {ip}).
-record(dns_rrdata_afsdb, {subtype, hostname}).
-record(dns_rrdata_caa, {flags, tag, value}).
-record(dns_rrdata_cert, {type, key_tag, alg, cert}).
-record(dns_rrdata_cname, {dname}).
-record(dns_rrdata_dhcid, {data}).
-record(dns_rrdata_dlv, {keytag, alg, digest_type, digest}).
-record(dns_rrdata_dname, {dname}).
-record(dns_rrdata_dnskey, {flags, protocol, alg, public_key, key_tag}).
-record(dns_rrdata_cdnskey, {flags, protocol, alg, public_key, key_tag}).
-record(dns_rrdata_ds, {keytag, alg, digest_type, digest}).
-record(dns_rrdata_cds, {keytag, alg, digest_type, digest}).
-record(dns_rrdata_hinfo, {cpu, os}).
-record(dns_rrdata_https, {svc_priority, target_name, svc_params}).
-record(dns_rrdata_ipseckey, {
precedence,
alg,
gateway,
public_key
}).
-record(dns_rrdata_key, {type, xt, name_type, sig, protocol, alg, public_key}).
-record(dns_rrdata_kx, {preference, exchange}).
-record(dns_rrdata_loc, {size, horiz, vert, lat, lon, alt}).
-record(dns_rrdata_mb, {madname}).
-record(dns_rrdata_mg, {madname}).
-record(dns_rrdata_minfo, {rmailbx, emailbx}).
-record(dns_rrdata_mr, {newname}).
-record(dns_rrdata_mx, {preference, exchange}).
-record(dns_rrdata_naptr, {
order,
preference,
flags,
services,
regexp,
replacement
}).
-record(dns_rrdata_ns, {dname}).
-record(dns_rrdata_nsec, {next_dname, types}).
-record(dns_rrdata_nsec3, {hash_alg, opt_out, iterations, salt, hash, types}).
-record(dns_rrdata_nsec3param, {hash_alg, flags, iterations, salt}).
-record(dns_rrdata_nxt, {dname, types}).
-record(dns_rrdata_ptr, {dname}).
-record(dns_rrdata_rp, {mbox, txt}).
-record(dns_rrdata_rrsig, {
type_covered,
alg,
labels,
original_ttl,
expiration,
inception,
key_tag,
signers_name,
signature
}).
-record(dns_rrdata_rt, {preference, host}).
-record(dns_rrdata_soa, {
mname,
rname,
serial,
refresh,
retry,
expire,
minimum
}).
-record(dns_rrdata_spf, {spf}).
-record(dns_rrdata_srv, {priority, weight, port, target}).
-record(dns_rrdata_sshfp, {alg, fp_type, fp}).
-record(dns_rrdata_svcb, {svc_priority, target_name, svc_params}).
-record(dns_rrdata_tsig, {alg, time, fudge, mac, msgid, err, other}).
-record(dns_rrdata_txt, {txt}).
-record(dns_optrr, {
udp_payload_size = 4096,
ext_rcode = ?DNS_ERCODE_NOERROR,
version = 0,
dnssec = false,
data = []
}).
-record(dns_opt_llq, {opcode, errorcode, id, leaselife}).
-record(dns_opt_nsid, {data}).
-record(dns_opt_owner, {seq = 0, primary_mac, wakeup_mac, password}).
-record(dns_opt_ul, {lease}).
-record(dns_opt_ecs, {
family,
source_prefix_length,
scope_prefix_length,
address
}).
-record(dns_opt_unknown, {id, bin}).
-endif.