Using Your Cisco Router with No-IP Dynamic DNS Services
Cisco IOS versions 12.4 and later have the capability to directly update your No-IP hostname using a built-in DDNS client. If you have a Cisco router with the latest firmware, this support is already built into it. We offer these examples below for informational purposes only and recommend that router configuration changes be made by qualified personnel to minimize the risk of losing Internet connectivity or causing other damage to the router.
| Command or Action | Purpose | |
| Step 1 | enable Example:
Router> enable
|
Enables privileged EXEC mode. •Enter your password if prompted. |
| Step 2 | configure terminal Example:
Router# configure terminal
|
Enters global configuration mode. |
| Step 3 | ip ddns update method method-name
Example:
Router(config)# ip ddns update method myupdate
|
Specifies the update method name. |
| Step 4 | ddns [both] Example: Router(DDNS-update-method)# ddns
|
Configures DDNS as the update method and enters update method configuration mode. The both keyword specifies that both A and PTR RRs will be updated. Note You can specify DDNS or HTTP but not both in one step. If you have specified DDNS, you must disable it by using the no ddns command before you can configure HTTP. For the HTTP configuration, see Steps 5, 6, and 7. |
| Step 5 | internal name-cache Example: Router(DDNS-update-method)# internal mycache
|
Specifies that an internal cache will be used as the update method. |
| Step 6 | http Example: Router(DDNS-update-method)# http
|
Configures HTTP as the update method and enters DDNS-HTTP configuration mode. |
| Step 7 | add url Example: Router(DDNS-HTTP)# add http://username:password%40dynupdate.no-ip.com/nic/update%3Fhostname= hostname.yourdomain.com |
Configures a URL that should be invoked in order to add or change a mapping between a hostname and an IP address.
The following example of a URL specifies adding or changing the mapping information using No-IP.com:
•http://username:password%40dynupdate.no- Note: Use the html encoding of %40 for the "@" symbol and %3F for the "?" symbol or IOS will complain. |
| Step 8 | remove url Example: Router(DDNS-HTTP)# add http://username:password%40dynupdate.no-ip.com/nic/update%3Fhostname=hostname.yourdomain.com |
Configures a URL that should be invoked in order to remove a mapping between a hostname and an IP address. The URL takes the same form as the add keyword in Step 6. Note: Use the html encoding of %40 for the "@" symbol and %3F for the "?" symbol or IOS will complain. |
| Step 9 | interval maximum days hours minutes seconds Example: Router(DDNS-HTTP)# interval maximum 1 0 0 0
|
Configures a maximum update interval. The arguments are as follows: •days—Range is from 1 to 365. •hours—Range is from 1 to 24. •minutes—Range is from 1 to 60. •seconds—Range is from 1 to 60. |
| Step 10 | exit Example: Router(DDNS-HTTP)# exit
|
Exits to update-method configuration mode. |
| Step 11 | exit Example: Router(DDNS-update-method)# exit
|
Exits to global configuration mode. |
| Step 12 | interface interface-type number Example: Router(config)# interface ether1
|
Enters interface mode. |
| Step 13 | ip ddns update hosthame hostname Example: Router(config-if)# ip ddns update hostname hostname.yourdomain.com
|
Specifies a host to be used for the updates. The update will associate this hostname with the configured IP address of the interface. The hostname argument specifies the hostname that will receive the updates (for example, yourdomain.com). |
| Step 14 | ip ddns update method method-name Example: Router(config-if) ip ddns update myupdate
|
Specifies the name of the update method to use for sending Dynamic DNS updates associated with address changes on this interface. |
| Step 15 | exit Example: Router(config)# exit
|
Exits to privileged EXEC mode. |