{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "set_dns_servers",
  "type": "object",
  "properties": {
    "servers": {
      "description": "Upstream DNS server addresses, as a list: [\"1.1.1.1\",\"8.8.8.8\"]. Replaces the whole list. Leave out to keep the servers.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allow_remote_requests": {
      "description": "Whether the router answers DNS queries from clients. Leave out to keep the current value: turning it off stops DNS for every client that uses the router as its resolver.",
      "type": "boolean"
    },
    "max_udp_packet_size": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "max_concurrent_queries": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "max_concurrent_tcp_sessions": {
      "description": "Maximum number of simultaneous TCP DNS sessions",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "query_server_timeout": {
      "description": "Per-upstream-server query timeout, e.g. \"2s\"",
      "type": "string"
    },
    "query_total_timeout": {
      "description": "Total query timeout across all servers, e.g. \"10s\"",
      "type": "string"
    },
    "cache_size": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "cache_max_ttl": {
      "type": "string"
    },
    "use_doh": {
      "description": "false turns DNS-over-HTTPS off (clears the DoH server). true needs doh_server. Leave out to keep DoH as it is.",
      "type": "boolean"
    },
    "doh_server": {
      "description": "DNS-over-HTTPS server URL. Giving it turns DoH on.",
      "type": "string"
    },
    "verify_doh_cert": {
      "description": "Whether the DoH server's certificate is checked. Leave out to keep the value.",
      "type": "boolean"
    },
    "doh_max_server_connections": {
      "description": "Maximum concurrent connections to the DoH server",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "doh_max_concurrent_queries": {
      "description": "Maximum concurrent queries over DoH",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "doh_timeout": {
      "description": "DoH request timeout, e.g. \"5s\"",
      "type": "string"
    },
    "vrf": {
      "description": "VRF the resolver uses for upstream queries",
      "type": "string"
    }
  },
  "additionalProperties": false
}
