-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDnsQueryType.cs
98 lines (82 loc) · 2.31 KB
/
DnsQueryType.cs
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
using System;
namespace NetLib.DNS
{
/// <summary>
/// DNS query types
/// </summary>
/// <remarks>
/// This enum is used by the DnsQuery API call to describe the
/// options to be given to a DNS server along with a query.
/// </remarks>
[Flags]
enum DnsQueryType : uint
{
/// <summary>
/// Standard
/// </summary>
STANDARD = 0x00000000,
/// <summary>
/// Accept truncated response
/// </summary>
ACCEPT_TRUNCATED_RESPONSE = 0x00000001,
/// <summary>
/// Use TCP only
/// </summary>
USE_TCP_ONLY = 0x00000002,
/// <summary>
/// No recursion
/// </summary>
NO_RECURSION = 0x00000004,
/// <summary>
/// Bypass cache
/// </summary>
BYPASS_CACHE = 0x00000008,
/// <summary>
/// Cache only
/// </summary>
NO_WIRE_QUERY = 0x00000010,
/// <summary>
/// Directs DNS to ignore the local name.
/// </summary>
NO_LOCAL_NAME = 0x00000020,
/// <summary>
/// Prevents the DNS query from consulting the HOSTS file.
/// </summary>
NO_HOSTS_FILE = 0x00000040,
/// <summary>
/// Prevents the DNS query from using NetBT for resolution.
/// </summary>
NO_NETBT = 0x00000080,
/// <summary>
/// Directs DNS to perform a query using the network only,
/// bypassing local information.
/// </summary>
WIRE_ONLY = 0x00000100,
/// <summary>
/// Treat as FQDN
/// </summary>
TREAT_AS_FQDN = 0x00001000,
/// <summary>
/// Allow empty auth response
/// </summary>
[Obsolete]
ALLOW_EMPTY_AUTH_RESP = 0x00010000,
/// <summary>
/// Don't reset TTL values
/// </summary>
DONT_RESET_TTL_VALUES = 0x00100000,
/// <summary>
/// Reserved.
/// </summary>
RESERVED = 0xff000000,
/// <summary>
/// obsolete.
/// </summary>
[Obsolete("use NO_WIRE_QUERY instead")]
CACHE_ONLY = NO_WIRE_QUERY,
/// <summary>
/// Directs DNS to return the entire DNS response message.
/// </summary>
RETURN_MESSAGE = 0x00000200
}
}