04-15-2023 06:41 AM
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
04-15-2023 06:49 AM - edited 04-15-2023 08:49 AM
using Split DNS I can make IOU1 to forward DNS request depend on the domain.
thanks
MHM
04-15-2023 06:56 AM
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
04-15-2023 07:04 AM
same source was the clients behind the router
04-15-2023 07:08 AM
Yeah, but it could be different vlans as client is not connect to the router right?
04-15-2023 07:12 AM
[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
04-15-2023 07:29 AM
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?
04-15-2023 07:54 AM
@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
04-15-2023 09:26 AM
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
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