dig
To do a lookup of the Domain Name System (DNS) server, use the dig command in rommon mode.
dig hostname {v4 | v6} [dns-server-address]
Syntax Description
DNS host name
hostname
IPv4 address.
v4
IPv6 address.
v6
(Optional) DNS Server IP address.
dns-server-address
Command Modes
Rommon
Command History
ModificationRelease
This command was introduced.Cisco IOS XE Everest 16.5.1
Usage Guidelines
This command does a look up of the DNS name and displays the IP/IPv6 address of the DNS server.
Examples
The following is sample output from the dig hostname command:
Device: dig example.org
DNS lookup using 2001:DB8::1
addr = 2001:DB8:0000:0000:0000:0000:0000:0001
The following is sample output from the dig hostname v4 command:
Device: dig example.org v4
DNS lookup using 10.29.27.5
addr = 172.16.0.1
The following is sample output from the dig hostname v4 dns-server-address command:
Device: dig example.org v4 10.29.27.5
DNS lookup using 10.29.27.5
addr = 172.16.0.1
The following is sample output from the dig hostname v6 command:
Device: dig example.org v6
DNS lookup using 2001:DB::1
addr = 2001:DB8:0000:0000:0000:0000:0000:0001
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
583
dig