How to I change dns ip from to

I new to Mellanox the user guide is not helpful to me please can some one please show steps on how to change the dns

Hello Frank,

Thank you for posting your question on the NVIDIA Networking Community.

For changing the DNS setting on a Mellanox switch, you can use the following syntax:

Login into the switch through SSH → ssh -ladmin or through serial console

On the switch, use the following commands to change the DNS nameserver

mlnx-sw [standalone: master] > ena

mlnx-sw [standalone: master] # configure terminal

mlnx-sw [standalone: master] (config) # ip name-server

mlnx-sw [standalone: master] (config) # configuration write

The setting will be effective immediatly.

Thank you,

~NVIDIA Networking Technical Support