ip domain localhost

This command configures a DNS hostname for the device.

Syntax

# ip domain localhost <hostname>

The hostname can include placeholders for the device's MAC address and serial number. The placeholders are replaced by the actual MAC address and serial number of the device. The following placeholders (case-insensitive) can be used:

For MAC address: {mac}
For serial number: {sn}

Note

This command is applicable only to data-router functionality.

Command Mode

Privileged User

Example

This example uses a placeholder for the MAC:
(config-data)# ip domain localhost msbr-{mac}

The hostname is replaced by "msbr-11:11:11:11:11:11" if 11:11:11:11:11:11 is the device's MAC.

This example uses a placeholder for the serial number:
(config-data)# ip domain localhost msbr-{sn}

The hostname is replaced by "msbr-1343452" if 134452 is the device's serial number.