Internal DNS via explicit resolver
54-dns-custom-nameserver.yaml
DNS
What this example does
DNS infrastructure verification: Internal DNS via explicit resolver. It helps detect resolution, delegation or published-record problems.
Checks and behavior
- Queries DNS records or resolver behavior ([{'type': 'A', 'equals': ['10.20.30.40']}, {'type': 'AAAA', 'exists': False}]).
- Formats results for icinga2 output.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
# Copyright (c) 2026 mati peterson. Maintainer: mati peterson <ipsonic@mailbox.org>. Project: https://ipsonic.com/probe/. Disclaimer: Provided AS IS, without warranty of any kind. Use at your own risk; validate checks and configurations before production use.
name: Internal DNS via explicit resolver
dns:
name: api.example.com
nameserver: 10.10.10.53
port: 53
transport: auto
timeout: 3
records:
- type: A
equals: [10.20.30.40]
- type: AAAA
exists: false
monitoring:
service_name: Internal DNS
output: icinga2
on_failure: critical