ArmNetworkModelFactory.DnsSettings Method

Definition

public static Azure.ResourceManager.Network.Models.DnsSettings DnsSettings(System.Collections.Generic.IEnumerable<string> servers = default, bool? enableProxy = default, bool? requireProxyForNetworkRules = default);
static member DnsSettings : seq<string> * Nullable<bool> * Nullable<bool> -> Azure.ResourceManager.Network.Models.DnsSettings
Public Shared Function DnsSettings (Optional servers As IEnumerable(Of String) = Nothing, Optional enableProxy As Nullable(Of Boolean) = Nothing, Optional requireProxyForNetworkRules As Nullable(Of Boolean) = Nothing) As DnsSettings

Parameters

servers
IEnumerable<String>

List of Custom DNS Servers.

enableProxy
Nullable<Boolean>

Enable DNS Proxy on Firewalls attached to the Firewall Policy.

requireProxyForNetworkRules
Nullable<Boolean>

FQDNs in Network Rules are supported when set to true.

Returns

A new DnsSettings instance for mocking.

Applies to