cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1523
Views
0
Helpful
1
Replies

Cisco IOS Router + DNS Server

RS19
Level 4
Level 4

I have a Cisco IOS router which is also configured as the DNS server with the command "ip dns server"

The DHCP scope is also configured in the router & it is also configured to give DNS server details to the client & the IP address of the DNS server is the router.

 

Since the router is configured as the DNS server, is it possible to restrict its DNS server functionality for a particular VLAN or segment .
Lets say only VLAN 100 (192.168.100.0/24) the router should act as DNS server.

If any other segment if it tries to use the router IP address as DNS server, it should not work.

1 Reply 1

balaji.bandi
Hall of Fame
Hall of Fame

Sure you can do that in the DHCP config 

 

example :

 

VLAN 100 (192.168.100.0/24) 

dns-server x.x.x.x.x <---- private DNS

 

 

VLAN 101 (192.168.101.0/24) 

dns-server 8.8.8.8 <---- google.  DNS

 

make sure you have NAT / routing in place to reach google DNS.

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: