cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
570
Views
0
Helpful
4
Replies

Cisco 1921 DNS configure multiple domains

luchonat1
Level 1
Level 1

Hello everyone!

I'm wondering if it's possible to configure the IOS DNS server to forward some specific DNS queries to different servers.

 

What I have is:

 

example1.foo -> the router is master for this domain and it's working OK

example2.foo -> I have to internal nameservers that should be in charge of solving queries for this domain.

rest of the world is forwarded to google's nameservers.

By DHCP, all LAN pc's have the routers IP set as the DNS.

 

My question is if there's a way to have the router redirect ONLY the queries that contain example2.foo to the internal nameservers.

 

Is that possible???

 

Thanks!

4 Replies 4

That's done with DNS-views:

ip dns view EXAMPLE
 logging
 dns forwarder 10.10.10.10
 dns forwarding source-interface Vlan100
ip dns view default
 logging
 domain timeout 2
!
ip dns view-list DNS
 view EXAMPLE 10
  restrict name-group 1
 view default 1000
!
ip dns name-list 1 permit \.EXAMPLE\.LOCAL
ip dns name-list 1 permit \.EXAMPLE\.INTERN

interface Vlan100
 desc your internal VLAN
 ip dns view-group DNS

Thanks for your help!!!

Also, I have two site to site VPN's and EasyVPNServer with clients. This configuration will not apply to VPN connected users, only for those locally connected. Any tips on how to do that?

 

For the site-to-site-users, it should be implemented on their local gateway.

For the EzVPN-users, I didn't test it, but I would assume that you can also apply it to the virtual template of your EzVPN-server-config.

Ok Thanks!! I'll try to do that!!

Review Cisco Networking for a $25 gift card