Skip to main content

lookup_dns

Looks up the DNS records of one type for a domain. It supports the same eight record types as the DNS tool on namebeta.com.

Read-only · Open world

Ask your assistant​

Paste this into a chat with NameBeta connected:

Which mail servers does github.com use?

Your assistant calls lookup_dns with type MX.

Input​

FieldTypeRequiredConstraints
domainstringYes1–253 characters; Matches \.
typestringNoOne of A, AAAA, CNAME, MX, TXT, NS, SRV, SOA; Default A

Output​

Returned as structuredContent, and repeated as JSON in a text content block.

FieldTypeRequiredConstraints
domainstringYes
typestringYesOne of A, AAAA, CNAME, MX, TXT, NS, SRV, SOA
recordsobject[]Yes
records[].typestringYesOne of A, AAAA, CNAME, MX, TXT, NS, SRV, SOA
records[].datastringYes

Behavior​

  • domain must contain a dot. It can be a registered domain such as example.com or a host name under it such as www.github.com.
  • type defaults to A. Only records of the requested type are returned: a host that is an alias answers an A query with its addresses, and its CNAME record appears only when you ask for CNAME.
  • data is the record's value as text: an address for A and AAAA, a host name for CNAME and NS, and the preference followed by the host for MX, such as 10 mail.example.com.
  • A name with no records of that type returns an empty records array; that is not an error.
  • A domain that accepts no email may publish a null MX (RFC 7505), which comes back as 0 .. example.com is one.

Example​

Arguments:

{ "domain": "github.com", "type": "MX" }

Result of a call on 2026-09-29:

{
"domain": "github.com",
"type": "MX",
"records": [
{ "type": "MX", "data": "0 github-com.mail.protection.outlook.com" }
]
}

dig MX github.com returns the same record: GitHub receives its mail through Microsoft 365.

Quota​

ToolBucketFree (hour / day)Pro (hour / day)Business (hour / day)Enterprise (hour / day)
lookup_dns dns20 / 50200 / 400500 / 1,000Unlimited

Errors​

Errors specific to this tool. Errors covers the rest, including how each kind reaches your client.

SituationResult
domain has no dotTool error MCP error -32602: Input validation error: … (A full domain name is required)
domain is not a valid domainTool error Invalid domain format
type is not one of the eightTool error MCP error -32602: Input validation error: …
The TLD's nameservers are unknownTool error Zone missing
The lookup fails or times outTool error with the reason

See also​