View as Markdown
OpenSRS icon

OpenSRS ACTION

Update DNS Records

Update DNS records for a specified domain. See the documentation.
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's OpenSRS account once, then configure and run Update DNS Records from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "opensrs-update-dns-records",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    opensrs: { authProvisionId: "apn_xxxxxxx" },
    domain: "Domain",
    nameserversOk: "Nameservers OK",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update DNS Records inputs
Property Type Description
domain Domain string
The domain name to register, update, or transfer.
Required
nameserversOk Nameservers OK string
Indicates whether the domain is set up to use the OpenSRS nameservers.
Required
numberOfARecords Number of A Records integer
Number of A records to update
Required
numberOfAAAARecords Number of AAAA Records integer
Number of AAAA records to update
Required
numberOfCNAMERecords Number of CNAME Records integer
Number of CNAME records to update
Required
numberOfMXRecords Number of MX Records integer
Number of MX records to update
Required
numberOfTXTRecords Number of TXT Records integer
Number of TXT records to update
Required
jsonOutput JSON Output boolean
Whether to output the response in JSON format.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
opensrs-update-dns-records
Version
0.0.2
App
OpenSRS
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes