Displaying user-defined VRF and management VRF

To display the DNS domain-lists configured for a VRF, enter the following command.

device# show ip dns vrf vrf1 domain-list
DNS Domain-list
1. google.com
2. yahoo.com

To display the DNS server-addresses configured for a VRF, enter the following command.

device# show ip dns vrf vrf1 server-address
IPV4 DNS server address
1. 8.8.8.8

To display all the cache entries, enter the following command.

device# show ip dns vrf vrf1 cache
Cache Count: 4 timer: 228 timeout 300 start: 2634 curt: 2898
FQDN Upd LkUp S Count   IP Resolved
-----------------------------------------------------------------
www.google.com 1 0 0 1 142.250.205.228
www.yahoo.com  1 0 0 2 27.123.42.204
 

To display the details of all cache entries, enter the following command.

device# show ip dns vrf vrf1 cache detail
Cache Count: 4 timer: 239 timeout 300 start: 3234 curt: 3454
FQDN    : www.google.com
Static  :      0 InUse  :      1 Count Upd/Lkup:      1/     0 Lid: 0
TS: Add :   2151 Queried:      0 Updated:   2153   Lookup:   2151
NumIP   :    1 IPList : 142.250.205.228

FQDN    : maps
Static  :     0 InUse  :      1 Count Upd/Lkup:      1/     0 Lid: 0
TS: Add :   2543 Queried:      0 Updated:   2544   Lookup:   2543
NumIP   :    1 IPList : 142.250.193.174

Unused index: 0