tartaruscode/Wait for DNS Resolution
Wait for DNS records to resolve with retry logic and comprehensive error handling
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| remotehost | Hostname to resolve (e.g., example.com) | yes | — |
| recordtype | DNS record type to resolve (A, AAAA, CNAME, MX, NS, PTR, SOA, SRV, TXT, SPF) | no | A |
| nameserver | Optional DNS server IP address, or comma-separated list of IP addresses, to query instead of the system resolver | no | "" |
| expectedvalue | Optional expected DNS answer value. The action retries until one resolved value matches or the timeout is reached. | no | "" |
| maxtime | Maximum time in seconds to wait for resolution (1-3600) | no | 60 |
Outputs
| name | description |
|---|---|
| message | Success message when DNS resolution succeeds |
| error_message | Error message if DNS resolution fails |
| resolved_values | JSON array of resolved values returned by DNS |
| matched_expected | Whether the resolved values matched expectedvalue |
| resolution_result | JSON object containing the hostname, record type, nameserver(s), resolved values, and expected-value match result |