cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3530
Views
5
Helpful
3
Replies

How to configure single dns server for all the VLANs in cisco 3560 switch

tiwariharish44
Level 1
Level 1

Hi all,

Plese suggest how do I How to configure single dns server for all the VLANs in cisco 3560 switch?

Thanks

3 Replies 3

Marvin Rhoads
Hall of Fame
Hall of Fame

Are you using the switch as a DHCP server for clients on those VLANs?

I ask because the DHCP server is were the DNS server is set for a given subnet associated with a VLAN. If you are doing DHCP on the switch, the DNS server must be set separately for each DHCP scope. see the following guide for all of the options in that case:

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/12-4t/dhcp-12-4t-book/config-dhcp-server.html#GUID-6B6DD9A0-623E-4D1B-B92E-608C32C84BA1

For the switch itself, there is a command ("ip name-server") in global configuration mode that sets the DNS server for the switch's management functions. We seldom use that though, preferring instead to use IP addresses directly when initiating communications from the switch.

Hi Marvin,

Yes, we are using the 3560 as the DHCP server for all the VLANs. So would I have to assign the DNS for each VLAN in separate commands?

Yes - each must be assigned separately per DHCP scope.

The command syntax is in the document I linked earlier.