A network administrator configures the IP address of an external DNS server on a Cisco IOS router using the command `ip name-server 10.1.1.1`. However, when attempting to ping a remote server by its hostname (`ping server1.example.com`), the router immediately fails to resolve the name and no DNS query packets are transmitted. Which command must be entered in global configuration mode to enable the router to perform DNS queries for hostname resolution?
- ip domain lookupAnswer
- Bip dns server
- Cip domain name example.com
- Dip helper-address 10.1.1.1
Answer
The command `ip domain lookup` must be configured in global configuration mode to enable Cisco IOS DNS hostname resolution.
The `ip domain lookup` command globally enables the DNS host name resolution feature on a Cisco IOS router. Without this command enabled, the router will not generate DNS request packets to configured DNS servers specified by `ip name-server`.
Step-by-Step Solution
Key Concept
Cisco IOS DNS Client Configuration and Hostname Resolution Mechanics