Skip to main content
Glama

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
NameRequiredDescriptionDefault
zoneIdYesThe zone ID
recordIdYesThe record ID

Implementation Reference

  • 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}`); }
  • 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; }
  • Type definition for supported DNS record types.
    export type DnsRecordType = 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS' | 'SRV';
  • 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}`);

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/razavioo/liara-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server