DNS TXT checks
53-dns-txt.yaml
DNS
What this example does
DNS infrastructure verification: DNS TXT checks. It helps detect resolution, delegation or published-record problems.
Checks and behavior
- Queries DNS records or resolver behavior ([{'type': 'TXT', 'contains': ['v=spf1'], 'not_contains': ['+all'], 'min_count': 1}]).
- Formats results for nagios output.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
name: DNS TXT checks
dns:
name: example.com
records:
- type: TXT
contains: ['v=spf1']
not_contains: ['+all']
min_count: 1
monitoring:
service_name: DNS TXT
output: nagios