dnskit 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,349 @@
1
+ """DNS logic. No printing and no UI imports — results are returned as dataclasses."""
2
+
3
+ from dnskit.core.adapters import Adapter, AdapterScan, RegistryEntry
4
+ from dnskit.core.batch import (
5
+ DEFAULT_PARALLEL,
6
+ MAX_PARALLEL,
7
+ BatchCheck,
8
+ BatchItem,
9
+ BatchLine,
10
+ BatchReport,
11
+ read_domains,
12
+ run_batch,
13
+ summarize_doctor,
14
+ summarize_email,
15
+ summarize_lookup,
16
+ )
17
+ from dnskit.core.compare import (
18
+ COMPARE_TIMEOUT_S,
19
+ PUBLIC_RESOLVERS,
20
+ Agreement,
21
+ CompareReport,
22
+ ResolverAnswer,
23
+ answer_key,
24
+ compare,
25
+ )
26
+ from dnskit.core.config import (
27
+ COMMAND_SETTINGS,
28
+ CONFIG_ENV,
29
+ CONFIG_TEMPLATE,
30
+ Config,
31
+ ConfigError,
32
+ config_path,
33
+ load_config,
34
+ parse_config,
35
+ write_template,
36
+ )
37
+ from dnskit.core.connectivity import (
38
+ ConnectAttempt,
39
+ ConnectError,
40
+ IPv6Check,
41
+ IPv6State,
42
+ check_ipv6,
43
+ tcp_connect,
44
+ )
45
+ from dnskit.core.diagnosis import Diagnosis, explain, explain_reverse
46
+ from dnskit.core.dnssec import (
47
+ ROOT_TRUST_ANCHORS,
48
+ BogusKind,
49
+ ClockCheck,
50
+ ClockState,
51
+ DnssecReport,
52
+ DnssecStatus,
53
+ DsInfo,
54
+ KeyInfo,
55
+ RecordCheck,
56
+ ZoneCheck,
57
+ ZoneStatus,
58
+ clock_diagnosis,
59
+ dnssec_check,
60
+ explain_dnssec,
61
+ )
62
+ from dnskit.core.doctor import (
63
+ CHECK_LABELS,
64
+ DOCTOR_TIMEOUT_S,
65
+ SLOW_CHECKS,
66
+ Area,
67
+ Check,
68
+ CheckRun,
69
+ CheckState,
70
+ DoctorReport,
71
+ Impact,
72
+ Issue,
73
+ doctor,
74
+ doctor_verdict,
75
+ find_issues,
76
+ )
77
+ from dnskit.core.integrity import (
78
+ HijackCheck,
79
+ InterceptionCheck,
80
+ Verdict,
81
+ check_cloudflare,
82
+ check_google,
83
+ check_nxdomain,
84
+ )
85
+ from dnskit.core.local import (
86
+ FlushCommand,
87
+ HostsEntry,
88
+ HostsFile,
89
+ HostsKind,
90
+ LocalReport,
91
+ Problem,
92
+ ProblemKind,
93
+ ServerCheck,
94
+ Severity,
95
+ local_check,
96
+ )
97
+ from dnskit.core.lookup import (
98
+ DEFAULT_RTYPES,
99
+ LookupReport,
100
+ LookupResult,
101
+ LookupStatus,
102
+ Record,
103
+ lookup,
104
+ txt_text,
105
+ )
106
+ from dnskit.core.mail import (
107
+ DKIM_SELECTORS,
108
+ DMARC_POLICIES,
109
+ SPF_ALL_MEANINGS,
110
+ SPF_LOOKUP_LIMIT,
111
+ CheckStatus,
112
+ DkimCheck,
113
+ DkimSelector,
114
+ DmarcCheck,
115
+ EmailReport,
116
+ EmailSection,
117
+ Finding,
118
+ MxCheck,
119
+ MxHost,
120
+ SpfCheck,
121
+ SpfLookup,
122
+ describe_key,
123
+ email_check,
124
+ normalize_domain,
125
+ )
126
+ from dnskit.core.nameservers import (
127
+ CACHE_TTL_S,
128
+ PROBE_TIMEOUT_S,
129
+ SLOW_THRESHOLD_MS,
130
+ ProbeResult,
131
+ ResolverChoice,
132
+ SystemNameservers,
133
+ cache_path,
134
+ choose_nameserver,
135
+ classify_nameservers,
136
+ configured_nameservers,
137
+ probe_all,
138
+ system_nameservers,
139
+ )
140
+ from dnskit.core.outside import DnsBlocking, blocked_diagnosis, check_blocking
141
+ from dnskit.core.propagation import (
142
+ ANYCAST_NOTE,
143
+ GLOBAL_REGION,
144
+ PROPAGATION_RESOLVERS,
145
+ PROPAGATION_TIMEOUT_S,
146
+ PropagationAnswer,
147
+ PropagationReport,
148
+ PublicResolver,
149
+ explain_propagation,
150
+ propagation,
151
+ )
152
+ from dnskit.core.reach import (
153
+ DEFAULT_PORT,
154
+ ReachReport,
155
+ ReachVerdict,
156
+ explain_reach,
157
+ parse_target,
158
+ reach,
159
+ )
160
+ from dnskit.core.reverse import ReverseReport, parse_ip, reverse_lookup
161
+ from dnskit.core.serialize import (
162
+ to_data,
163
+ )
164
+ from dnskit.core.trace import (
165
+ ROOT_SERVERS,
166
+ TRACE_TIMEOUT_S,
167
+ FailReason,
168
+ Server,
169
+ ServerFailure,
170
+ StepStatus,
171
+ TraceMode,
172
+ TraceReport,
173
+ TraceStep,
174
+ explain_trace,
175
+ trace,
176
+ trace_blocked_diagnosis,
177
+ )
178
+ from dnskit.core.watch import (
179
+ MIN_INTERVAL_S,
180
+ WATCH_INTERVAL_S,
181
+ SeenValue,
182
+ WatchSample,
183
+ WatchSummary,
184
+ watch,
185
+ watch_summary,
186
+ )
187
+
188
+ __all__ = [
189
+ "ANYCAST_NOTE",
190
+ "CACHE_TTL_S",
191
+ "CHECK_LABELS",
192
+ "COMMAND_SETTINGS",
193
+ "COMPARE_TIMEOUT_S",
194
+ "CONFIG_ENV",
195
+ "CONFIG_TEMPLATE",
196
+ "DEFAULT_PARALLEL",
197
+ "DEFAULT_PORT",
198
+ "DEFAULT_RTYPES",
199
+ "DKIM_SELECTORS",
200
+ "DMARC_POLICIES",
201
+ "DOCTOR_TIMEOUT_S",
202
+ "GLOBAL_REGION",
203
+ "MAX_PARALLEL",
204
+ "MIN_INTERVAL_S",
205
+ "PROBE_TIMEOUT_S",
206
+ "PROPAGATION_RESOLVERS",
207
+ "PROPAGATION_TIMEOUT_S",
208
+ "PUBLIC_RESOLVERS",
209
+ "ROOT_SERVERS",
210
+ "ROOT_TRUST_ANCHORS",
211
+ "SLOW_CHECKS",
212
+ "SLOW_THRESHOLD_MS",
213
+ "SPF_ALL_MEANINGS",
214
+ "SPF_LOOKUP_LIMIT",
215
+ "TRACE_TIMEOUT_S",
216
+ "WATCH_INTERVAL_S",
217
+ "Adapter",
218
+ "AdapterScan",
219
+ "Agreement",
220
+ "Area",
221
+ "BatchCheck",
222
+ "BatchItem",
223
+ "BatchLine",
224
+ "BatchReport",
225
+ "BogusKind",
226
+ "Check",
227
+ "CheckRun",
228
+ "CheckState",
229
+ "CheckStatus",
230
+ "ClockCheck",
231
+ "ClockState",
232
+ "CompareReport",
233
+ "Config",
234
+ "ConfigError",
235
+ "ConnectAttempt",
236
+ "ConnectError",
237
+ "Diagnosis",
238
+ "DkimCheck",
239
+ "DkimSelector",
240
+ "DmarcCheck",
241
+ "DnsBlocking",
242
+ "DnssecReport",
243
+ "DnssecStatus",
244
+ "DoctorReport",
245
+ "DsInfo",
246
+ "EmailReport",
247
+ "EmailSection",
248
+ "FailReason",
249
+ "Finding",
250
+ "FlushCommand",
251
+ "HijackCheck",
252
+ "HostsEntry",
253
+ "HostsFile",
254
+ "HostsKind",
255
+ "IPv6Check",
256
+ "IPv6State",
257
+ "Impact",
258
+ "InterceptionCheck",
259
+ "Issue",
260
+ "KeyInfo",
261
+ "LocalReport",
262
+ "LookupReport",
263
+ "LookupResult",
264
+ "LookupStatus",
265
+ "MxCheck",
266
+ "MxHost",
267
+ "ProbeResult",
268
+ "Problem",
269
+ "ProblemKind",
270
+ "PropagationAnswer",
271
+ "PropagationReport",
272
+ "PublicResolver",
273
+ "ReachReport",
274
+ "ReachVerdict",
275
+ "Record",
276
+ "RecordCheck",
277
+ "RegistryEntry",
278
+ "ResolverAnswer",
279
+ "ResolverChoice",
280
+ "ReverseReport",
281
+ "SeenValue",
282
+ "Server",
283
+ "ServerCheck",
284
+ "ServerFailure",
285
+ "Severity",
286
+ "SpfCheck",
287
+ "SpfLookup",
288
+ "StepStatus",
289
+ "SystemNameservers",
290
+ "TraceMode",
291
+ "TraceReport",
292
+ "TraceStep",
293
+ "Verdict",
294
+ "WatchSample",
295
+ "WatchSummary",
296
+ "ZoneCheck",
297
+ "ZoneStatus",
298
+ "answer_key",
299
+ "blocked_diagnosis",
300
+ "cache_path",
301
+ "check_blocking",
302
+ "check_cloudflare",
303
+ "check_google",
304
+ "check_ipv6",
305
+ "check_nxdomain",
306
+ "choose_nameserver",
307
+ "classify_nameservers",
308
+ "clock_diagnosis",
309
+ "compare",
310
+ "config_path",
311
+ "configured_nameservers",
312
+ "describe_key",
313
+ "dnssec_check",
314
+ "doctor",
315
+ "doctor_verdict",
316
+ "email_check",
317
+ "explain",
318
+ "explain_dnssec",
319
+ "explain_propagation",
320
+ "explain_reach",
321
+ "explain_reverse",
322
+ "explain_trace",
323
+ "find_issues",
324
+ "load_config",
325
+ "local_check",
326
+ "lookup",
327
+ "normalize_domain",
328
+ "parse_config",
329
+ "parse_ip",
330
+ "parse_target",
331
+ "probe_all",
332
+ "propagation",
333
+ "reach",
334
+ "read_domains",
335
+ "reverse_lookup",
336
+ "run_batch",
337
+ "summarize_doctor",
338
+ "summarize_email",
339
+ "summarize_lookup",
340
+ "system_nameservers",
341
+ "tcp_connect",
342
+ "to_data",
343
+ "trace",
344
+ "trace_blocked_diagnosis",
345
+ "txt_text",
346
+ "watch",
347
+ "watch_summary",
348
+ "write_template",
349
+ ]