ip name-server
ip name-server <IPv4/IPv6 address>
no name-server <IPv4/IPv6 address>
Sets the static name server.
The no form of the command clears the name server.
Syntax Description
IPv4/v6 address
Default
No server name
Modes/Context
Config
History
3.1.0000
Role
admin
Example
switch (config) # ip name-server 9.9.9.9
switch (config) # show hosts
Hostname: switch
Name server: 9.9.9.9 (configured)
Name server: 10.211.0.121 (dynamic)
Name server: 172.30.0.126 (dynamic)
Name server: 10.4.0.135 (dynamic)
Domain name: lab.mtl.com (dynamic)
Domain name: vmlab.mtl.com (dynamic)
Domain name: yok.mtl.com (dynamic)
Domain name: mtl.com (dynamic)
IP 127.0.0.1 maps to hostname localhost
IPv6 ::1 maps to hostname localhost6
Automatically map hostname to loopback address: yes
Automatically map hostname to IPv6 loopback address: no
switch (config) #
Related Commands
show hosts
Note
IPv4 or IPv6 address.
Mellanox Technologies
Rev 1.6.2
44