-
Notifications
You must be signed in to change notification settings - Fork 856
Expand file tree
/
Copy pathDNSClientSettings.cs
More file actions
39 lines (33 loc) · 1.31 KB
/
Copy pathDNSClientSettings.cs
File metadata and controls
39 lines (33 loc) · 1.31 KB
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
using System.Collections.Generic;
namespace NETworkManager.Utilities;
/// <summary>
/// Class is used to store settings for the <see cref="DNSClient" />.
/// <see cref="DNSClient" /> retains the instance passed to <see cref="DNSClient.Configure" /> and reads
/// it from concurrent resolve calls without further synchronization - do not mutate an instance after
/// passing it to <see cref="DNSClient.Configure" />; construct a new one instead.
/// </summary>
public class DNSClientSettings
{
/// <summary>
/// Create an instance of <see cref="DNSClientSettings" />.
/// </summary>
public DNSClientSettings()
{
}
/// <summary>
/// Use custom DNS servers.
/// </summary>
public bool UseCustomDNSServers { get; set; }
/// <summary>
/// List of name servers as Tuple (string Server, int Port).
/// </summary>
public IEnumerable<(string Server, int Port)> DNSServers { get; set; }
/// <summary>
/// Add the DNS suffix to a hostname without a dot before resolving it (A/AAAA queries only).
/// </summary>
public bool AddDNSSuffix { get; set; }
/// <summary>
/// DNS suffix to append. Either the custom DNS suffix from the settings or the Windows DNS suffix.
/// </summary>
public string DNSSuffix { get; set; }
}