namespace AMWD.Net.Api.Cloudflare.Dns
{
///
/// Represents a request to create a DNS Firewall cluster with specific configuration settings.
///
public abstract class DNSFirewallClusterRequestBase
{
///
/// Initializes a new instance of the class.
///
/// The account identifier.
public DNSFirewallClusterRequestBase(string accountId)
{
AccountId = accountId;
}
///
/// The account identifier.
///
public string AccountId { get; set; }
///
/// Upstream DNS server IPs.
///
public IReadOnlyCollection? UpstreamIps { get; set; }
///
/// Attack mitigation settings.
///
public AttackMitigation? AttackMitigation { get; set; }
///
/// Whether to refuse to answer queries for the ANY type.
///
public bool? DeprecateAnyRequests { get; set; }
///
/// Whether to forward client IP (resolver) subnet if no EDNS Client Subnet is sent.
///
public bool? EcsFallback { get; set; }
///
///
/// By default, Cloudflare attempts to cache responses for as long as indicated by the TTL received from upstream nameservers.
/// This setting sets an upper bound on this duration.
/// For caching purposes, higher TTLs will be decreased to the maximum value defined by this setting.
///
///
/// This setting does not affect the TTL value in the DNS response Cloudflare returns to clients.
/// Cloudflare will always forward the TTL value received from upstream nameservers.
///
///
public int? MaximumCacheTtl { get; set; }
///
///
/// By default, Cloudflare attempts to cache responses for as long as indicated by the TTL received from upstream nameservers.
/// This setting sets a lower bound on this duration.
/// For caching purposes, lower TTLs will be increased to the minimum value defined by this setting.
///
///
/// This setting does not affect the TTL value in the DNS response Cloudflare returns to clients.
/// Cloudflare will always forward the TTL value received from upstream nameservers.
///
///
///
/// Note that, even with this setting, there is no guarantee that a response will be cached for at least the specified duration.
/// Cached responses may be removed earlier for capacity or other operational reasons.
///
public int? MinimumCacheTtl { get; set; }
///
///
/// This setting controls how long DNS Firewall should cache negative responses (e.g., NXDOMAIN) from the upstream servers.
///
///
/// This setting does not affect the TTL value in the DNS response Cloudflare returns to clients.
/// Cloudflare will always forward the TTL value received from upstream nameservers.
///
///
public int? NegativeCacheTtl { get; set; }
///
/// Ratelimit in queries per second per datacenter (applies to DNS queries sent to the upstream nameservers configured on the cluster).
///
public int? RateLimit { get; set; }
///
/// Number of retries for fetching DNS responses from upstream nameservers (not counting the initial attempt).
///
public int? Retries { get; set; }
}
}