06-03-2024 02:28 AM - edited 06-03-2024 06:33 AM
To be clear I am taling about using a router as a DNS server for local PCs.
Our routers are set to provide DNS to the local PCs on site.
They split this in 2 ways.
1st Internal domains, these are sent to our internal DNS servers
2nd Anything else, bascially all internet traffic. Ths is sent to public DNS servers to resolve.
We have an issue with one web site and becuase of this any site that needs that website has to be set to only use our internal DNS servers. This is becuase it resolves to a UK based Azure IP and the providor of the service has not mapped out servic to other IPs around the world.
So if we lose DMVPN back to our internal servers, we lose this website.
I have found we can use a host file entry on the PCs for this webiste, but management does not like to use host file entries.
So I am trying to see if you can add a host entry on the router, which the router DNS will look to first before looking up externally.
I have tried this but it does not work
ip host www.url_of_web_site .com xx.xx.xx.xx
06-03-2024 12:20 PM
For that to work you need to run ip dns server on the router and sourcing your Internal DNS Server to resolve for you.
when your External Link fails , still Router can resolve the DNS if that is inside the network. (by adding your entry you thinking)
configure terminal
ip dns server
ip domain-lookup
ip name-server x.x.x.x (external DNS Server from your company)
ip host www.bb.com 192.168.10.10 ( 192.168.10.10 expect to be local Server)
06-03-2024 10:58 PM
ip domain-lookup is check that local DNS-IP entry if the domain is same as domain name in router if not the router will forward request to external DNS
here the Web URL use same domain of router ?
MHM
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