Table of Contents

Class DnsConfig

Namespace
VpnHood.Core.Client.Abstractions
Assembly
VpnHood.Core.Client.Abstractions.dll

Represents a session's DNS: its servers, where they came from, and whether the tunnel carries them.

public class DnsConfig
Inheritance
DnsConfig
Inherited Members

Properties

DnsSelection

Gets where the servers came from.

public required DnsSelection DnsSelection { get; init; }

Property Value

DnsSelection

DnsServers

Gets the DNS servers.

[JsonConverter(typeof(ArrayConverter<IPAddress, IPAddressConverter>))]
public required IPAddress[] DnsServers { get; init; }

Property Value

IPAddress[]

IsIncludedInVpn

Gets a value indicating whether the plan is for the tunnel to carry the queries to the servers; a server at the VPN server's own address is reached outside it all the same, as that address always is.

public required bool IsIncludedInVpn { get; init; }

Property Value

bool

IsUserSuppressed

Gets a value indicating whether the user's own servers were set aside, as servers the tunnel cannot carry while DNS must stay inside it.

public required bool IsUserSuppressed { get; init; }

Property Value

bool