We help IT Professionals succeed at work.
Get Started

How do I get the Cisco router to respond/rewrite DNS queries?

ekobrinsky
ekobrinsky asked
on
2,163 Views
Last Modified: 2012-05-09
Setup:
1) Cisco 2811 router running 12.4
2) Branch office where the cisco router handles DHCP.
3) DNS servers are external ISP DNS servers

Question:
I'm trying to figure out how to get the router to intercept/rewrite DNS queries to certain domains and redirect the user to alternative domains. I can easily do this if I control the DNS servers, but in the branch office, they are using the ISPs DNS servers (which are handed to the clients by the router DHCP). Whats the best way to do this?

Few more specific questions:

1) Can the Cisco router act as a DNS server? caching DNS responses and forwarding DNS requests if it doesn't have it in cache?

2) Is it possible to rewrite DNS responses relatively easily (if it's a pain, it's easier just to block the ips)?

3) Is the "ip name-server" command only used to specify DNS servers used for the routers own internal lookups, like ping/trace? It has nothing to do with the DHCP pool dns-server command that specifies what DNS servers to send to the DHCP clients, correct?

Thanks!
Comment
Watch Question
System Admin
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE