cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2435
Views
5
Helpful
2
Replies

[Split DNS] - Views and domain names

Vivien FRANCOIS
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

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

View solution in original post

2 Replies 2

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

HI,

Thanks a lot. It works perfectly.

Have a good day.

V.

Review Cisco Networking for a $25 gift card