Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Router to act as primary DNS

I am trying to configure a router as a primary DNS server for our remote locations.  Does anybody have example config that I can look at to see how to configure it?  Also I will need to to forward the DNS if it cannot resolve it, is that possible?

Thank you for your help

Cisco Employee

Re: Router to act as primary DNS

Hi Peter,

That's indeed possible, you'll basically need to configure the router as a DNS server, configure the other DNS server forwarders, and then configure all the local hosts names:

ip domain name

ip dns server                                ! The router will now act as a DNS server

ip name-server   ! The other server forwarders
!   Start configuring your hosts:
ip host
ip host
!   [...]
! To configure the router as authoritative for a zone
ip dns primary soa
This documentation explains the steps more in details: