DNS IPv4 records
50-dns-a.yaml
DNS
What this example does
DNS infrastructure verification: DNS IPv4 records. It helps detect resolution, delegation or published-record problems.
Checks and behavior
- Queries DNS records or resolver behavior ([{'type': 'A', 'exists': True, 'min_count': 1, 'equals': ['192.0.2.10'], 'not_equals': ['192.0.2.99']}]).
- Formats results for nagios 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: DNS IPv4 records
# Replace the example domain and expected addresses with real values.
dns:
name: api.example.com
timeout: 3
records:
- type: A
exists: true
min_count: 1
equals: [192.0.2.10]
not_equals: [192.0.2.99]
monitoring:
service_name: DNS A record
output: nagios