Skip to main content
Glama
Fewsats
by Fewsats

update_dns

Modify DNS records for domains by updating type, name, value, or TTL. Input domain and record UUIDs to ensure accurate changes and maintain domain management.

Instructions

Update an existing DNS record for a domain. NOTE: Updating a record will change its record id. domain_id: Domain UUID (e.g., 'd1234567-89ab-cdef-0123-456789abcdef') record_id: DNS record UUID to update type: DNS record type ('A', 'AAAA', 'CNAME', 'MX', 'TXT', etc.) name: Subdomain or record name (e.g., 'www' for www.yourdomain.com) value: New record value (e.g., IP address for A records) ttl: Time To Live in seconds (default: 3600)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domain_idYes
nameNotest-2
record_idYes
ttlNo
typeNoTXT
valueNotest-2

Implementation Reference

  • The main handler function for the 'update_dns' MCP tool. It is decorated with @mcp.tool() for automatic registration and schema generation. The function delegates the core logic to the external Sherlock library's _update_dns_record method, wrapped in handle_response.
    @mcp.tool() async def update_dns(domain_id: str, record_id: str, type: str = "TXT", name: str = "test-2", value: str = "test-2", ttl: int = 3600): """ Update an existing DNS record for a domain. NOTE: Updating a record will change its record id. domain_id: Domain UUID (e.g., 'd1234567-89ab-cdef-0123-456789abcdef') record_id: DNS record UUID to update type: DNS record type ('A', 'AAAA', 'CNAME', 'MX', 'TXT', etc.) name: Subdomain or record name (e.g., 'www' for www.yourdomain.com) value: New record value (e.g., IP address for A records) ttl: Time To Live in seconds (default: 3600) """ return handle_response(get_sherlock()._update_dns_record(domain_id, record_id, type, name, value, ttl))

Other Tools

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

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