image image image image image

On This Page

hostname


hostname <hostname>
no hostname

Sets a static system hostname.
The no form of the command clears the user-configured hostname.

Syntax DescriptionhostnameString
DefaultDefault hostname
Configuration Modeconfig
History1.5
Example
ufmapl [ mgmt-sa ] (config) # hostname ufmapl-hostname
ufmapl-hostname [ mgmt-sa ] (config) #
Related Commands

show hosts

Notes"." is not permitted as a valid character of the hostname.

ip name-server


ip name-server <IPv4/IPv6 address>
no name-server

Sets the static name server.
The no form of the command clears the name server.

Syntax DescriptionN/A
DefaultN/A
Configuration Modeconfig
History1.5
Example
ufmapl [ mgmt-sa ] (config) # ip name-server 9.9.9.9
Related Commands

show hosts

Notes

ip domain-list


ip domain-list <domain_name>
no ip domain-list

Sets the static domain name.
The no form of the command clears the domain name.

Syntax Descriptiondomain_nameString
DefaultN/A
Configuration Modeconfig
History1.5
Example
ufmapl [ mgmt-sa ] (config) # ip domain-list mydomain2.com
Related Commands

show hosts

Notes
  • A domain name is an identification string that defines a realm of administrative autonomy, authority, or control in the Internet
  • Domain names are formed by the rules and procedures of the Domain Name System (DNS)

{ip | ipv6} host


{ip | ipv6} host <hostname> <ip-address>
no {ip | ipv6} host <hostname> <ip-address>

Sets the static domain name.
The no form of the command clears the domain name.

Syntax DescriptionhostnameString
ip-addressIPv4 or IPv6 address
DefaultN/A
Configuration Modeconfig
History1.5
Example
ufmapl [ mgmt-sa ] (config) # ip host test-host 1.2.3.4
ufmapl [ mgmt-sa ] (config) # ipv6 host my-ipv6-host 2001::8f9
Related Commands

show hosts

Notes

{ip | ipv6} map-hostname


{ip | ipv6} map-hostname
no {ip | ipv6} map-hostname

Maps between the currently-configured hostname and the loopback address 127.0.0.1.
The no form of the command clears the mapping.

Syntax DescriptionN/A
DefaultIPv4 mapping is enabled by default
IPv6 mapping is disabled by default
Configuration Modeconfig
History1.5
Example
ufmapl [ mgmt-sa ] (config) # ip map-hostname
Related Commands

show hosts

Notes
  • If no mapping is configured, a mapping between the hostname and the IPv4 loopback address 127.0.0.1 will be added
  • The no form of the command maps the hostname to the IPv6 loopback address if there is no statically configured mapping from the hostname to an IPv6 address (disabled by default)
  • Static host mappings are preferred over DNS results. As a result, with this option set, you will not be able to look up your hostname on your configured DNS server; but without it set, some problems may arise if your hostname cannot be looked up in DNS.

show hosts


show hosts

Displays hostname, DNS configuration, and static host mappings.

Syntax DescriptionN/A
DefaultN/A
Configuration ModeAny configuration mode
History1.5
Example
ufmapl [ mgmt-sa ] (config) # show hosts
Hostname: ufmapl

Name servers:
 9.9.9.9 configured
 10.211.0.121 (DHCP on eth0)

Domain names:
 mydomain2.com configured
 lab.mydomain.com dynamic (DHCP on eth0) 
 vmlab.mydomain.com dynamic (DHCP on eth0) 
 tok.mydomain.com dynamic (DHCP on eth0) 
 mydomain.com dynamic (DHCP on eth0)

Static IPv4 host mappings:
  10.7.144.133 --> ufmapl1
  127.0.0.1 --> localhost

Static IPv6 host mappings:
  ::1 --> localhost6
  fcfc:fcfc:209:36:a6bf:1ff:fe00:9c20 --> ufmapl1

Automatically map hostname to loopback address:       yes
Automatically map hostname to IPv6 loopback address:  no
ufmapl [ mgmt-sa ] (config) # 	
Related Commands

show hosts

Notes