JSJR SEKWELE OPTICSPHOTONIC SOLUTIONS Request a Quote

Modify DNS on the core switch

To modify DNS on a core switch, configure the ip name-server entries and ensure ip domain-lookup is enabled, then verify resolution and client access.

Steps to Modify DNS

  1. Access the Switch
    • Connect via console or SSH.
    • Enter privileged EXEC mode:

      enable

    • Enter global configuration mode:

      configure terminal

  2. Enable Hostname Resolution
    • Ensure the switch can resolve hostnames:

      ip domain-lookup

  3. Configure DNS Servers
    • Add one or multiple DNS servers using the ip name-server command:

      ip name-server 8.8.8.8 8.8.4.4 You can list multiple servers in a single command or use separate commands; both methods work and the switch will prioritize them in order .

  4. Optional: Configure Domain Name
    • If you want the switch to resolve short hostnames without fully qualified domain names:

      ip domain-name example.com

  5. Verify Configuration
    • Check the running configuration:

      show running-config

    • Test DNS resolution from the switch:

      ping hostnamenslookup hostname

  6. Client Considerations
    • If the core switch acts as a DNS relay for clients, ensure the DHCP pool includes the switch IP as the DNS server:

      ip dhcp pool VLAN10network 192.168.10.0 255.255.255.0dns-server 192.168.10.1

    • Verify clients can resolve external hostnames through the switch .

Best Practices

  • Use DNS servers that are reliable and close to your network for faster resolution .
  • Avoid overlapping DHCP pools and exclude static IPs to prevent conflicts.
  • Test DNS resolution after changes to ensure proper functionality.
  • Document the configuration and maintain backups before making changes . By following these steps, your core switch will correctly resolve hostnames and provide DNS information to clients if configured as a relay.
Modify DNS on the core switch - JR Sekwele Optical Networks & Photonic Group

Configuring DNS

Information About DNS Client If your network devices require connectivity with devices in networks for which you do not control name

Complete DNS Configuration on Cisco Routers & Switches Master DNS

🎯 In this video, you''ll learn how to fully configure DNS on Cisco routers and switches —

Catalyst 4500 Series Software Configuration Guide, 7.5

To use DNS, you must have a DNS name server on your network. You can specify a primary DNS name server on the switch as well

Configure Network Settings on Windows with PowerShell: IP Address, DNS

You can use these cmdlets to configure networking on both Windows 10/11 and Windows Server (or Server Core

SME Network Solution Typical Configuration Examples

"Gateway + Core Switch + Aggregation Switch + Access Switch + WAC + AP + AR180" Networking: Local Entire Network

HPE Community

Hier sollte eine Beschreibung angezeigt werden, diese Seite lässt dies jedoch nicht zu.

DNS Settings in the Core Switch | Wired Intelligent Edge

From a pure technical point of view it''s always better to use DNS sever closer to you, but closest server doesn''t always

Change the DNS Server Address on the Cisco 9300 Series

This procedure describes how to change the DNS server address on the Cisco 9300 Series Management Network Switch.

How to change DNS server with Command Prompt or PowerShell

Learn how to change DNS server using Command Prompt and PowerShell. You can change Preferred DNS server

Cisco: Configure DNS Server (s) & Search Domains For Name

Connect to the console or login remotely to the switch using SSH. Go into the configuration prompt using the following

How to Change DNS For a Domain

How to Change DNS For a Domain DNS (Domain Name System) translates domain names (like

How to change the DNS address in Windows 10 and 11

For business networks, DNS-level security is also part of the Cisco Umbrella security platform. How to change DNS

How to Manually Enter DNS Settings on Nintendo Switch 2 or Nintendo Switch

Steps for how to manually enter a Primary and Secondary DNS into the Internet settings of a Nintendo Switch 2 or Nintendo Switch

Still Have a Technical Question?

Our photonic engineering team can help you select the right PLC splitter for your network.

Ask Our Team