Get DNS records and history
get_dns_recordsGet the DNS records Oh Dear last saw for a monitor, plus the history of changes to them, so you can spot when a record changed. This can return a lot of data, so start with limit 3 or 4. See https://ohdear.app/docs/api/dns-records.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"monitor_id": "<monitor_id>"
},
"name": "get_dns_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of DNS history items to return (default: 10, max: 100) | |
| monitor_id | Yes | The ID of the monitor to get DNS records for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| monitor | Yes | ||
| view_url | Yes | ||
| dns_records | Yes | Current and historical DNS results. | |
| latest_record | No | ||
| dns_records_count | Yes |