cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
666
Views
1
Helpful
8
Replies

Domain forward

ciscoreg2
Level 1
Level 1

Hi,

I want to forward the certain domain to one local dns server, but from the router (1900) how can I config it?

Example: forward google.com query to 192.168.10.10

Now I just config one ip name-server

ip name-server 8.8.8.8

8 Replies 8

using Split DNS I can make IOU1 to forward DNS request depend on the domain. 
thanks 
MHM

Screenshot (614).png

Hi

 Is it from different source or same source?

If different source would be easier. But look at PBR. I believe is the way to go. 

https://networklessons.com/cisco/ccie-routing-switching/how-to-configure-policy-based-routing 

ciscoreg2
Level 1
Level 1

same source was the clients behind the router

Yeah, but it could be different vlans as client is not connect to the router right? 

  

ciscoreg2
Level 1
Level 1

[LAN192.168.10.0/24]<-->[router]<-->[Internet]

Lan 192.168.10.0/24 have one dns server 192.168.10.10

Clients in Lan 192.168.10.0/24 send query google.com forward to 192.168.10.10, other query was forward to 8.8.8.8

But then we have a problem cause google.com or 8.8.8.8 is suppose to be the same thing.

Unless you are saying that someone from the brouser is accessing www.google.com but then it would be HTTP HTTPS traffic and not DNS query.

 You dont want use google DNS while accessing google.com, it that what you want?

@ciscoreg2 
the solution is using split DNS 
with using ip dns view you can forward the DNS request from client to DNS server you want. 
Split DNS on Cisco IOS — Shaun Ewing (se.au)

this what I was want to lab, I will lab it but I think it will take some time. If I finish it I will share result here IF YOU WANT
thanks 
MHM

ciscoreg2
Level 1
Level 1

thanks for your repling, after config these steps,

nslookup seems doesn't resovle. I tried my local active directory name for testing.

ip dns server
ip dns view xyz
dns forwarder 192.168.10.10
ip dns view default
dns forwarder 8.8.8.8
ip dns view-list dnsview01
view xyz 10
restrict name-group 1
view default 100
ip dns name-list 1 permit .*.xyz.local
ip dns server view-group dnsview01

Review Cisco Networking for a $25 gift card