liara_get_dns_record
Retrieve DNS record details by providing zone and record IDs to manage domain configurations on the Liara cloud platform.
Instructions
Get details of a DNS record
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoneId | Yes | The zone ID | |
| recordId | Yes | The record ID |
Implementation Reference
- src/services/dns.ts:83-93 (handler)The core handler function that implements retrieving a specific DNS record from a Liara DNS zone via the API. This matches the logic for the 'liara_get_dns_record' tool.* Get a specific DNS record */ export async function getRecord( client: LiaraClient, zoneId: string, recordId: string ): Promise<DnsRecord> { validateRequired(zoneId, 'Zone ID'); validateRequired(recordId, 'Record ID'); return await client.get<DnsRecord>(`/v1/zones/${zoneId}/records/${recordId}`); }
- src/api/types.ts:221-229 (schema)TypeScript interface defining the structure of a DNS record, used as the return type for the get DNS record operation.export interface DnsRecord { _id: string; zoneID: string; type: DnsRecordType; name: string; value: string; ttl: number; priority?: number; }
- src/api/types.ts:231-231 (schema)Type definition for supported DNS record types.export type DnsRecordType = 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS' | 'SRV';
- src/services/dns.ts:90-92 (helper)Input validation helper calls ensuring zoneId and recordId are provided.validateRequired(zoneId, 'Zone ID'); validateRequired(recordId, 'Record ID'); return await client.get<DnsRecord>(`/v1/zones/${zoneId}/records/${recordId}`);