IP address
The IP address of the system can be statically mapped to its host name for local DNS purposes by using the system static-host-mapping command.
IP networks are specified in CIDR format—that is, in ip-address /prefix notation such as 192.168.12.0/24. For a single address, use dotted quad format, that is, a.b.c.d. For a network prefix, enter a decimal number from 1 through 32.
A good practice is to map the host name of the system to the loopback address because the loopback interface is the most reliable on the system. In this example, the loopback interface is given the 10.0.0.65 address. This address is configured for the loopback interface in the sample topology used in this guide.
The following table shows how to create a static mapping between the R1 host name and 10.0.0.65 IP address. The DNS server uses this IP address to resolve DNS requests for R1.mydomain.com.
To map the host name to the IP address, perform the following steps in configuration mode.
Step | Command |
---|---|
Map the R1 host name to the 10.0.0.65 IP address. |
|
Commit the change. |
|
Show the configuration. |
|