dns_lookup

Pack: dns · Endpoint: https://gateway.pipeworx.io/dns/mcp

Look up a specific DNS record type for a domain. Specify record type (e.g., ‘A’, ‘MX’, ‘TXT’, ‘CNAME’). Returns records with TTLs and data values.

Parameters

NameTypeRequiredDescription
domainstringyesDomain name to look up (e.g., “example.com”, “mail.google.com”)
typestringnoDNS record type to query (e.g., “A”, “AAAA”, “MX”, “NS”, “TXT”, “CNAME”, “SOA”). Defaults to “A”.

Example call

Arguments

{
  "domain": "example.com"
}

curl

curl -X POST https://gateway.pipeworx.io/dns/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"dns_lookup","arguments":{"domain":"example.com"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('dns_lookup', {
  "domain": "example.com"
});

More examples

{
  "domain": "mail.google.com",
  "type": "MX"
}

Response shape

Always returns: domain, type, status, records, record_count

FieldTypeDescription
domainstringDomain name that was queried
typestringDNS record type that was queried
statusstringDNS status code name (NOERROR, NXDOMAIN, etc.)
recordsarrayArray of DNS records found
record_countnumberNumber of records returned
Full JSON Schema
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain name that was queried"
    },
    "type": {
      "type": "string",
      "description": "DNS record type that was queried"
    },
    "status": {
      "type": "string",
      "description": "DNS status code name (NOERROR, NXDOMAIN, etc.)"
    },
    "records": {
      "type": "array",
      "description": "Array of DNS records found",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Full domain name of the record"
          },
          "type": {
            "type": "string",
            "description": "DNS record type (A, AAAA, MX, etc.)"
          },
          "ttl_seconds": {
            "type": "number",
            "description": "Time-to-live in seconds"
          },
          "value": {
            "type": "string",
            "description": "Record data value"
          }
        },
        "required": [
          "name",
          "type",
          "ttl_seconds",
          "value"
        ]
      }
    },
    "record_count": {
      "type": "number",
      "description": "Number of records returned"
    }
  },
  "required": [
    "domain",
    "type",
    "status",
    "records",
    "record_count"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "dns": {
      "url": "https://gateway.pipeworx.io/dns/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026