cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5008
Views
20
Helpful
1
Replies
Highlighted
Beginner

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

1 REPLY 1
Highlighted
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 example.com

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

!
ip name-server 192.168.2.120 192.168.2.121   ! The other server forwarders
!
!   Start configuring your hosts:
!
ip host user1.example.com 192.168.201.5 192.168.201.6
ip host user2.example.com 192.168.201.7
!   [...]
!
! To configure the router as authoritative for a zone
ip dns primary example.com soa ns1.example.com mb1.example.com
This documentation explains the steps more in details:
Content for Community-Ad