40 Change Domain Name Cisco Router Update

Our host name was labrouter1 and our prompt was labrouter1 config before executing this command labrouter1 config hostname router1 notice that our prompt.
Change domain name cisco router. The enterprise wide im and presence service domain does not need to align with the dns default domain of any im and presence service node. At the cli prompt execute the configure terminal command to switch to global configuration mode and then use the hostname name command to rename the router. At the cli prompt the router s title will default to r1.
Router config ip domain name name example. Do not include the initial period that separates an unqualified name from the domain name. If there is a domain list the default domain name is not used.
This command allows you to set a domain name for the router. Dynamic domain name system ddns is a network service that allows a networked device using communication protocols e g a router to let the domain name system dns know that it needs to change its active dns configuration. Defines a default domain name that the cisco ios software uses to complete unqualified host names names without a dotted decimal domain name.
Administrators can modify the network level dns default domain that is associated with an im and presence service node or group of nodes. Now if we check show cdp neighbors on r2 we see that r1 has a domain name appended to it. When you add one or more devices to the working environment the device s name will be named r2 r3 r4.
For renaming setting router host name you should be in global configuration mode for more about cisco router modes visit cisco router modes hostname yourdesiredname is the command you enter for changing host name.