Get DNS records
get_dns_recordsRetrieve all DNS records for a domain, automatically detecting the provider or specifying one. Use this to audit or view DNS settings without modification.
Instructions
List every DNS record for a domain. The provider is chosen by which one holds the domain — Namecheap, GoDaddy or Route 53 — unless you pass provider. domain is the registrable domain (example.com or example.co.uk); sub-domains appear in each record's name. Read-only.
On Route 53 a record SET with several values comes back as several rows sharing one id; they share a TTL and are written back together.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Registrable domain, e.g. example.com | |
| provider | No | Force a provider instead of routing by domain. Needed when the domain does not exist yet (registration), and useful when a domain is at two providers and you mean a specific one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | ||
| account | Yes | ||
| records | Yes | ||
| provider | Yes | ||
| environment | No |