Skip to main content
Glama
Fewsats
by Fewsats

create_dns

Add DNS records to domains by specifying type, name, value, and TTL to configure domain routing and services.

Instructions

Create a new DNS record for a domain. domain_id: Domain UUID (e.g., 'd1234567-89ab-cdef-0123-456789abcdef') type: DNS record type ('A', 'AAAA', 'CNAME', 'MX', 'TXT', etc.) name: Subdomain or record name (e.g., 'www' creates www.yourdomain.com) value: Record value (e.g., IP address for A records, domain for CNAME) ttl: Time To Live in seconds (default: 3600)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domain_idYes
typeNoTXT
nameNotest
valueNotest-1
ttlNo

Implementation Reference

  • MCP tool handler function for creating a DNS record. It delegates to the Sherlock client's _create_dns_record method after handling the response uniformly.
    @mcp.tool() async def create_dns(domain_id: str, type: str = "TXT", name: str = "test", value: str = "test-1", ttl: int = 3600): """ Create a new DNS record for a domain. domain_id: Domain UUID (e.g., 'd1234567-89ab-cdef-0123-456789abcdef') type: DNS record type ('A', 'AAAA', 'CNAME', 'MX', 'TXT', etc.) name: Subdomain or record name (e.g., 'www' creates www.yourdomain.com) value: Record value (e.g., IP address for A records, domain for CNAME) ttl: Time To Live in seconds (default: 3600) """ return handle_response(get_sherlock()._create_dns_record(domain_id, type, name, value, ttl))
  • Registration of the 'create_dns' tool using the FastMCP decorator.
    @mcp.tool()
  • Function signature and docstring defining the input schema (parameters with types and defaults) and descriptions for the 'create_dns' tool.
    async def create_dns(domain_id: str, type: str = "TXT", name: str = "test", value: str = "test-1", ttl: int = 3600): """ Create a new DNS record for a domain. domain_id: Domain UUID (e.g., 'd1234567-89ab-cdef-0123-456789abcdef') type: DNS record type ('A', 'AAAA', 'CNAME', 'MX', 'TXT', etc.) name: Subdomain or record name (e.g., 'www' creates www.yourdomain.com) value: Record value (e.g., IP address for A records, domain for CNAME) ttl: Time To Live in seconds (default: 3600) """

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/Fewsats/sherlock-mcp'

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