07-20-2012 07:06 AM - edited 03-04-2019 05:01 PM
Hi,
I implement a basic split DNS in my router : a default view wiht my parameters (forwarding source interface...).
What I need to do is have another view which will be applied only when computers in the network will try to access *.mydomain.com (for example). If the DNS request does not concern *.mydomain.com it will use the default view parameters.
Is there a way to do that with split DNS ?
Thanks in advance.
V.
Solved! Go to Solution.
07-20-2012 08:12 AM
That's what SplitDNS is for. Here is an example:
! specify which domain needs extra handling:
ip dns name-list 1 permit \.company\.local
!
! where to send the specially handled domains:
ip dns view COMPANY
logging
dns forwarder 10.11.12.13
dns forwarding source-interface Vlan254
!
!
! your default-handling:
ip dns view default
logging
domain timeout 2
dns forwarder 8.8.8.8
!
!
! here the two settings are combined in the right order and applied to the router:
ip dns view-list DNS
view COMPANY 10
restrict name-group 1
view default 1000
!
ip dns server view-group DNS
07-20-2012 08:12 AM
That's what SplitDNS is for. Here is an example:
! specify which domain needs extra handling:
ip dns name-list 1 permit \.company\.local
!
! where to send the specially handled domains:
ip dns view COMPANY
logging
dns forwarder 10.11.12.13
dns forwarding source-interface Vlan254
!
!
! your default-handling:
ip dns view default
logging
domain timeout 2
dns forwarder 8.8.8.8
!
!
! here the two settings are combined in the right order and applied to the router:
ip dns view-list DNS
view COMPANY 10
restrict name-group 1
view default 1000
!
ip dns server view-group DNS
07-20-2012 01:26 PM
HI,
Thanks a lot. It works perfectly.
Have a good day.
V.
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