---
id: System-wide unique identifier of this instance. Used for grouping logs and tagging workers.
- rundir: Directory where the resolver can create files and which will be it's cwd.
+ nsid: Name Server Identifier (RFC 5001) which allows DNS clients to request resolver to send back its NSID along with the reply to a DNS request.
hostname: Internal DNS resolver hostname. Default is machine hostname.
+ rundir: Directory where the resolver can create files and which will be it's cwd.
workers: The number of running kresd (Knot Resolver daemon) workers. If set to 'auto', it is equal to number of CPUs available.
management: Configuration of management HTTP API.
webmgmt: Configuration of legacy web management endpoint.
"""
id: IDPattern
- rundir: UncheckedPath = UncheckedPath(".")
+ nsid: Optional[str] = None
hostname: Optional[str] = None
+ rundir: UncheckedPath = UncheckedPath(".")
workers: Union[Literal["auto"], IntPositive] = IntPositive(1)
management: ManagementSchema = ManagementSchema({"unix-socket": "./manager.sock"})
webmgmt: Optional[WebmgmtSchema] = None
_PREVIOUS_SCHEMA = Raw
id: IDPattern
- rundir: UncheckedPath
+ nsid: Optional[str]
hostname: str
+ rundir: UncheckedPath
workers: IntPositive
management: ManagementSchema
webmgmt: Optional[WebmgmtSchema]
-from typing import Any, Optional, Union
+from typing import Any, Union
from typing_extensions import Literal
Fine-tuning global parameters of DNS resolver operation.
---
- nsid: Name Server Identifier (RFC 5001) which allows DNS clients to request resolver to send back its NSID along with the reply to a DNS request.
glue_checking: Glue records scrictness checking level.
qname_minimisation: Send minimum amount of information in recursive queries to enhance privacy.
query_loopback: Permits queries to loopback addresses.
prediction: Helps keep the cache hot by prefetching expiring records and learning usage patterns and repetitive queries.
"""
- nsid: Optional[str] = None
glue_checking: GlueCheckingEnum = "normal"
qname_minimisation: bool = True
query_loopback: bool = False
_PREVIOUS_SCHEMA = Raw
- nsid: Optional[str]
glue_checking: GlueCheckingEnum
qname_minimisation: bool
query_loopback: bool