How to Configure a Cisco Router as a DNS Server
Step-by-step guide to configure a Cisco IOS router to act as a DNS server for internal hostname resolution using the `ip dns server` and `ip host` commands.
Step-by-step
- Enter global configuration mode:
enable→configure terminal - Enable DNS server functionality:
ip dns server - Define hostname-to-IP mappings:
ip host <hostname> <ip-address>(repeat for each host) - Configure DNS forwarding (optional):
ip name-server <upstream-dns-ip> - Apply to interfaces that need DNS service:
ip domain-lookupon relevant interfaces - Verify configuration:
show hostsand test withping <hostname>from a client
Reference: www.tutorialspoint.com