Command map

show dns lookup

Look up a DNS name from the router.

Ze command

Registry path
show dns lookup
Usage
show dns lookup <hostname> [type <A|AAAA|MX|NS|TXT|CNAME|PTR>]
Mode
Read-only
Wire method
ze-show:dns-lookup
Backends
any backend
Task support
optional: the MCP call is synchronous, which is the default
Subcommands
none: this command takes no subcommand
Pipes, always
json, ndjson, table, text, yaml, raw, no-more, save
Pipes, when the answer has rows
match, count, first, last, display, fill
Pipes, while streaming
log
Pipes, local process only
save

Description

Resolves <hostname> using the daemon's DNS resolver (falls back to the system
resolver if no DNS component is configured). Default type is A. Returns
records, TTL, and query time. Supports A, AAAA, MX, NS, TXT, CNAME, and PTR.

Arguments

NameTypeRequiredValuesSummaryDescription
hostnamestringyesany value of this typeHostname to resolve.A DNS name of at most 253 characters. The first word that is not the type keyword is taken as the name, and a call with no name is refused.
typeenumnoA AAAA MX NS TXT CNAME PTRDNS record type.The record type to query, written after the type keyword. The default is A. Ze upper-cases the value, and a type outside this list is refused with the list of accepted ones.

Mapping intents

DNS lookup and cache inspection

Category: Diagnostics

Juniper Junos MX

No equivalent is listed for this vendor yet.

Cisco IOS XR

No equivalent is listed for this vendor yet.

Nokia SR OS

No equivalent is listed for this vendor yet.