05-08-2015 01:56 PM - edited 03-07-2019 11:56 PM
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!
05-08-2015 03:27 PM
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
05-10-2015 02:29 PM
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?
05-10-2015 02:38 PM
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.
05-10-2015 02:39 PM
Ok Thanks!! I'll try to do that!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide