Saltar al contenido

Configuration Reference

Este contenido aún no está disponible en español.

cDNSd reads an optional YAML file and then applies environment variable overrides. Environment variables take precedence over YAML values.

YAML keyEnvironment variablePurposeDefault
logging.debugLOGGING_DEBUGEnable debug logging.false
logging.queryLogLOGGING_QUERY_LOGLog individual DNS queries.true
dns.addressDNS_LISTEN_ADDRESSDNS listen address; empty means all interfaces.empty
dns.portDNS_LISTEN_PORTUDP/TCP DNS port.8053
dns.tlsPortDNS_LISTEN_TLS_PORTDNS-over-TLS port; TLS still requires both key and certificate paths.8853
dns.recursionEnabledDNS_RECURSIONAllow recursive lookups for non-blockchain names.false
dns.rootHintsDNS_ROOT_HINTSRoot-hints content supplied directly.built in
dns.rootHintsFileDNS_ROOT_HINTS_FILEFile containing root hints.empty
dns.retryCountDNS_RETRY_COUNTNumber of upstream lookup retries.3
dns.retryDelayMsDNS_RETRY_DELAY_MSDelay between retries in milliseconds.100
dns.queryTimeoutMsDNS_QUERY_TIMEOUT_MSUpstream query timeout in milliseconds.5000
dns.soa.mnameDNS_SOA_MNAMESOA primary name server.ns1.cdnsd.localhost.
dns.soa.rnameDNS_SOA_RNAMESOA responsible mailbox.hostmaster.cdnsd.localhost.
dns.soa.refreshDNS_SOA_REFRESHSOA refresh interval.3600
dns.soa.retryDNS_SOA_RETRYSOA retry interval.900
dns.soa.expireDNS_SOA_EXPIRESOA expiry interval.604800
dns.soa.minimumDNS_SOA_MINIMUMSOA minimum/TTL value.86400
metrics.addressMETRICS_LISTEN_ADDRESSPrometheus metrics listen address.empty
metrics.portMETRICS_LISTEN_PORTPrometheus metrics port.8081
debug.addressDEBUG_ADDRESSDebug and pprof HTTP listen address.localhost
debug.portDEBUG_PORTDebug and pprof HTTP port; 0 disables it.0

METRICS_LISTEN_ADDRESS=127.0.0.1 is the safest local-only setting. An empty address binds an unauthenticated /metrics endpoint on all interfaces.

YAML keyEnvironment variablePurposeDefault
indexer.networkINDEXER_NETWORKCardano network name, such as preprod or mainnet.profile-provided
indexer.networkMagicINDEXER_NETWORK_MAGICCardano network magic when required.0
indexer.addressINDEXER_TCP_ADDRESSCardano node TCP address.empty
indexer.socketPathINDEXER_SOCKET_PATHCardano node IPC socket path.empty
indexer.interceptHashINDEXER_INTERCEPT_HASHBlock hash at which to begin or resume syncing.profile-provided
indexer.interceptSlotINDEXER_INTERCEPT_SLOTSlot at which to begin or resume syncing.profile-provided
indexer.verifyINDEXER_VERIFYEnable additional indexer verification.true
indexer.handshakeAddressINDEXER_HANDSHAKE_ADDRESSHandshake peer address.empty
state.dirSTATE_DIRPersistent BadgerDB state directory../.state
tls.certFilePathTLS_CERT_FILE_PATHTLS certificate for DNS-over-TLS.empty
tls.keyFilePathTLS_KEY_FILE_PATHTLS private key for DNS-over-TLS.empty
profilesPROFILESComma-separated enabled profile names.ada-preprod,auto-preprod

DNS-over-TLS starts only when TLS_CERT_FILE_PATH and TLS_KEY_FILE_PATH both point to readable files. Profiles can supply a network and sync intercept point; view the profile source for the current list.

Editar página

Última actualización: