pressable_create_dns_record
Create DNS records (A, AAAA, CNAME, MX, TXT, SRV, NS) for domain zones to manage website routing and email configuration.
Instructions
Create a new DNS record.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone_name | Yes | ||
| type | Yes | ||
| name | Yes | ||
| content | Yes | ||
| priority | No | ||
| ttl | No |
Implementation Reference
- tools/dns.js:41-44 (handler)Handler for the pressable_create_dns_record tool.
handler: async (args) => { const { zone_name, ...recordData } = args; return await api.post(`/dns/zones/${zone_name}/records`, recordData); } - tools/dns.js:29-40 (schema)Input schema for the pressable_create_dns_record tool.
inputSchema: { type: 'object', properties: { zone_name: { type: 'string' }, type: { type: 'string', enum: ['A', 'AAAA', 'CNAME', 'MX', 'TXT', 'SRV', 'NS'] }, name: { type: 'string' }, content: { type: 'string' }, priority: { type: 'integer' }, ttl: { type: 'integer' } }, required: ['zone_name', 'type', 'name', 'content'] }, - tools/dns.js:26-45 (registration)Registration of the pressable_create_dns_record tool.
{ name: 'pressable_create_dns_record', description: 'Create a new DNS record.', inputSchema: { type: 'object', properties: { zone_name: { type: 'string' }, type: { type: 'string', enum: ['A', 'AAAA', 'CNAME', 'MX', 'TXT', 'SRV', 'NS'] }, name: { type: 'string' }, content: { type: 'string' }, priority: { type: 'integer' }, ttl: { type: 'integer' } }, required: ['zone_name', 'type', 'name', 'content'] }, handler: async (args) => { const { zone_name, ...recordData } = args; return await api.post(`/dns/zones/${zone_name}/records`, recordData); } },