Related docs:
DNS PLUGIN DNS USE CASES DOCS MAP
Use this guide to choose the right DNS lookup pattern for your automation.
The plugin reference explains exact option syntax. This page explains when a single record lookup is enough, when a zone-wide search is the better fit, and when to filter by DNS record type instead of post-processing a broad result set.
flowchart LR
need["DNS workflow question"]
show["Show one named record"]
find["Find many records in a zone"]
filter["Optional record_type filter"]
act["Assert, audit, or report drift"]
need --> show
need --> find
find --> filter
show --> act
filter --> act
The DNS lookup has one core split:
operation='show' when the workflow depends on a specific record nameoperation='find' when the workflow depends on an IdM-native zone searchrecord_type when you want only records that carry a specific RR kind such as arecord or ptrrecordUse operation='show' when a play depends on one known record being present
before later work starts.
Typical cases:
Why this fits:
show returns exists: false for missing records instead of raising@Use operation='find' when the workflow depends on an IdM-side search across
one zone.
Typical cases:
workshop.lanWhy this fits:
record_type keeps the result set focused on the record family that mattersUse operation='show' or find against a reverse zone when a workflow depends
on PTR state.
Typical cases:
Why this fits:
Use operation='show' with @ when the workflow needs zone-apex data rather
than only host records.
Typical cases:
Why this fits:
ipalib, so treat SOA and policy metadata as opportunistic rather than guaranteedUse operation='find' when you need a broad IdM-side search within one zone.
Typical cases:
workshop.lanocp.workshop.lanrecord_typeWhy this fits:
find makes the plugin useful for audit and compliance, not just pre-flight checksresult_format='map_record' is the better shape when later tasks need direct access by record name| Need | Query |
|---|---|
| Check that one named DNS record exists | operation='show' |
| Validate one reverse record | operation='show' against the reverse zone |
| Inspect the zone apex entry | operation='show' with @ |
| Search a zone broadly with IdM-native matching | operation='find' |
| Find only records carrying one RR type | operation='find' with record_type=... |
| Load many named records for later assertions | result_format='map_record' |