4.11.3 Change the DNS Server Address on the Cisco RoCE Network Fabric Switches

This procedure describes how to change the DNS server address on the Cisco RoCE Network Fabric switches.

  1. Access the switch using SSH, and log in as the admin user with the administrator password.

    Note:

    If SSH has not been configured, then use Telnet to access the switch as the admin user.
  2. Review the current configuration.
    Switch# show running-config
    ...
    ip domain-name  example.com
    ip name-server 192.0.2.2 198.51.100.4 203.0.113.2 use-vrf management
    ...
  3. Erase the current DNS server information.
    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# no ip name-server 192.0.2.2 use-vrf management
    Switch(config)# no ip name-server 198.51.100.4 use-vrf management
    Switch(config)# no ip name-server 203.0.113.2 use-vrf management
    Switch(config)# end
    Switch# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.

    Note:

    Each current DNS IP address to be changed needs to be erased. Invalid IP addresses must also be erased.
  4. Set the domain name and then configure up to three DNS servers, as shown in the following example:
    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# ip domain-name example.com
    Switch(config)# ip name-server 192.0.2.3 use-vrf management
    Switch(config)# ip name-server 198.51.100.5 use-vrf management
    Switch(config)# ip name-server 203.0.113.1 use-vrf management
    Switch(config)# end
    Switch# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.
  5. Verify the changes.
    Switch# show running-config

    The command output should include entries for the new DNS servers.

    For example:

    
    !Command: show running-config
    ...
    ip domain-name example.com
    ip name-server 192.0.2.3 198.51.100.5 203.0.113.1 use-vrf management
    ...
  6. Exit the session.
    Switch# exit