NanoTech-kw · Tech Guide Library

How to Configure a Cisco Router as a DNS Server

Cisco · Cisco CCNA

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

  1. Enter global configuration mode: enable → configure terminal
  2. Enable DNS server functionality: ip dns server
  3. Define hostname-to-IP mappings: ip host <hostname> <ip-address> (repeat for each host)
  4. Configure DNS forwarding (optional): ip name-server <upstream-dns-ip>
  5. Apply to interfaces that need DNS service: ip domain-lookup on relevant interfaces
  6. Verify configuration: show hosts and test with ping <hostname> from a client

Reference: www.tutorialspoint.com

Open in the NanoTech-kw library →