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

NameTypeRequiredValues
hostnamestringyesany value of this type
typeenumnoA AAAA MX NS TXT CNAME PTR

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.