Home / Servers / Linode API / post_domain_record

Create a domain record

An MCP tool from the Linode API server, hosted on mcp.hjlabs.in.

Create a domain record Adds a new Domain Record to the zonefile this Domain represents. Each domain can have up to 12,000 active records. > --- - __CLI__. linode-cli domains records-create 123 \ --type A \ --name test \… [POST /v4/domains/{domainId}/records]

Name on the gateway: linode_api__post_domain_record · may change things.

Parameters

NameTypeDescription
domainId requiredintegerThe ID of the Domain we are accessing Records for.
createdstring__Read-only__ When this Domain Record was created.
idinteger__Read-only__ This Record's unique ID.
namestring__Filterable__ The name of this Record. For requests, this property's actual…
portintegerThe port this Record points to. Only valid and required for SRV record requests.
priorityintegerThe priority of the target host for this Record. Lower values are preferred.…
protocolstringThe protocol this Record's service communicates with. An underscore (_) is…
servicestringThe name of the service. An underscore (_) is prepended and a period (.) is…
tagissue | issuewild | iodef__Filterable__ The tag portion of a CAA record. Only valid and required for…
targetstring__Filterable__ The target for this Record. For requests, this property's…
ttl_secinteger"Time to Live" - the amount of time in seconds that this Domain's records may…
type requiredA | AAAA | NS | MX | CNAME | TXT | SRV | PTR | CAA__Filterable__ The type of Record this is in the DNS system. For example, A…
updatedstring__Read-only__ When this Domain Record was last updated.
weightintegerThe relative weight of this Record used in the case of identical priority.…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "linode_api__post_domain_record",
  "arguments": {
    "domainId": 0,
    "type": "…"
  }
}

Or connect the Linode API server directly, which lists 439 tools including this one:

Run in your terminal
claude mcp add --transport http hj-linode-api https://mcp.hjlabs.in/mcp/linode-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a domain record tool with domainId set to ….

More from Linode API