Skip to main content

Module query

Module query 

Source

Functionsยง

extract_zone_names
Extract zone/domain names from a list_zones response. Handles the three known vendor formats:
filter_records_by_domain
Retain only records whose FQDN matches target_fqdn (or, when all_subdomains is true, any record at or under target_fqdn). Zones that become empty are dropped.
infer_zone
Strip the leftmost DNS label to get the likely parent zone name. Returns None for single-label names (e.g. "hankin").
list_records_for_all_zones
Query every hosted zone and return its complete record set.
list_records_for_query
Resolve CLI/MCP-style record-list inputs into one vendor-neutral record query.
resolve_fqdn
Build the fully-qualified domain name from a possibly-relative label and an optional zone.
search_bare_label_in_zones
Query every hosted zone for records whose DNS name equals label. When all_subdomains is true, records beneath label in each zone are also included. Zones where the label does not exist are silently skipped.