08-14-2016 12:17 AM - edited 03-08-2019 06:59 AM
Hi all,
Plese suggest how do I How to configure single dns server for all the VLANs in cisco 3560 switch?
Thanks
08-14-2016 10:53 AM
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.
08-16-2016 01:38 AM
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?
08-16-2016 06:04 AM
Yes - each must be assigned separately per DHCP scope.
The command syntax is in the document I linked earlier.
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