Skip to main content

How to configure Dynamic DNS in Cisco Routers?



I was encouter a lot of problem and headache when I had to do the Cisco Router installation and configuration with Dynamic DNS.

So now, I'd like to share my real world experience in configuring Dynamic DNS configuration for Cisco Router.

OK. Let's start through now. Assume connect to Router through and you're in IOS Windowds. Please follow below configuration,

Router>enable

Router#configure terminal

Router(config)# ip ddns update method method-name

(Specifies the update method name and enters DDNS update method configuration mode. Example:Router(config)# ip ddns update method DynDNS)

Router(DDNS-update-method)# interval maximum days hours minutes seconds

(Configures a maximum update interval. Example: Router(DDNS-update-method)# interval maximum 2 0 0 0)

Router(DDNS-update-method)# ddns

(Configures DDNS as the update method.)

Router(DDNS-update-method)# internal

(Specifies that an internal cache will be used as the update method.)

Router(DDNS-update-method)# http

(Configures HTTP as the update method and enters DDNS-HTTP configuration mode.)

Router(DDNS-HTTP)# add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=

(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 configures the URL to be invoked to add or change the mapping information using dyndns.org:
http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=
You have to enter the URL string above. username is your username and password is your password at the dyndns.org website.
The special character strings and will be substituted with the hostname to update and the IP address with which that hostname should be associated, respectively.
Note Before entering the question mark (?) character, press the control (Ctrl) key and the v key together on your keyboard. This will allow you to enter the ? without the software interpreting the ? as a help query.)


Router(DDNS-HTTP)# remove http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=

(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 above step.)


Router(DDNS-HTTP)# exit
Router(DDNS-update-method)# exit

Router(config)# interface interface-type number

(Enters interface configuration mode that link to Internet or ISP Provider.)

Router(config-if)# ip ddns update hostname hostname

(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, dyndns.org).
 Example: Router(config-if)# ip ddns update hostname abc.dyndns.org)


Router(config-if) ip ddns update name

( Specifies the name of the update method to use for sending Dynamic DNS updates associated with address changes on this interface.
  Example: Router(config-if) ip ddns update DynDNS)

Router(config)# exit


OK. That's it. Now you done the configuration for Dynamic DNS. But don't forget to save the configuration.

Below is complete sample configuration for your reference.

Router> enable
Router# configure terminal
Router(config)# ip ddns update method DynDNS
Router(DDNS-update-method)# interval maximum 2 0 0 0
Router(DDNS-update-method)# ddns
Router(DDNS-update-method)# internal
Router(DDNS-update-method)# http
Router(DDNS-HTTP)# add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=
Router(DDNS-HTTP)# remove http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=&myip=
Router(DDNS-HTTP)# exit
Router(DDNS-update-method)# exit
Router(config)# interface FastEthernet0
Router(config-if)# ip ddns update hostname abc.dyndns.org
Router(config-if) ip ddns update DynDNS
Router(config)# exit


There is some option you can use for specific requirement but I didn't show because of the above configuration is commonly used in most condition in real world.

And the configuration could be a bit differ depends on option and Dynamic DNS Service that you gonna use. Please be aware this and check on Support at Service Provider if you need in case.

I hope you will understand this configuration and get easy for Dynamic DNS setup in Cisco Router as well.

May you all be happy.
(Be knowledgeable, pass it on then)


Comments

Popular posts from this blog

Fortigate guide for Begineer - 6

I would like to explaine how to troubleshoot the Fortigate Unit configured by Transparent Mode in step by step this time. Let's assume, you have one Fortigate Unit that configured as Transparent Mode. But devices from Internal/Private Network unable to access Internet/Public Network through your Fortigate Unit. OK. Let's troubleshoot with following steps, 1) Check the physical network connections between the network and the FortiGate unit, and between the FortiGate unit and the Internet. 2) Check the router and ISP-supplied equipment to make sure it is operating correctly. 3) Verify that you can connect to the internal interface by connecting to the management IP address of the FortiGate unit from the Internal network. From the internal network, attempt to ping the management IP address. If you cannot connect to the internal interface, verify the IP configuration of the PC and make sure the cables are connected and all switches and other devices on the network are powered on a

Solving the "A general system error occured:Invalid fault" error in vSphere 4

Below error was come out when you try to migrate VM to other host for some reason. Below error was come out when you try to edit VM setting. Below error was come out when you power on the VM. How to solve those error? Here is how I resolve the error! Login to the Host that errored VM exist by using Terminal or Direct Console. Enter below command and press enter. services.sh restart Wait until all VMware Services are restarted. After that try to Power On/Edit Settings or Migrate the errored VM and you will see all you can do without any error pop-up. This kind of errors can occur if you shutdown/restart VM unproperly or shutdown/restart the Host unproperly that VM exist. You can check log file deeply if you willing to know precisely on this. May you all be happy. (Be knowledgeable, pass it on then)

Link Aggregating with Synology NAS and Cisco Switch

I’d like to share how to setup Link Aggregating between Synology NAS and Cisco Switch. I’ve got one Synology NAS with 4 Network Ports and I’m going to use 2 of them. Both Network Port to be as one Logical Link, Fault Tolerance and Load Balancing. To do that, I need to configure Link Aggregating on Synology NAS and EtherChannel with LACP on Cisco Switch. Below is brief steps to do to meet with my requirements. - Get connected Synology NAS and Cisco Switch as shown in picture. - Bonding two Network Ports of Synology NAS and assign IP Address - Configure EtherChannel with LACP in Cisco Switch and add two physical ports as Member. OK. Let’s begin from Synology NAS. - Login to the Synology and go to Control Panel>Network>Create>Create Bond - Select IEEE 802.3ad to get Fault Tolerance and Load Balancing Featureyou’re your switch not support 802.3ad you can only select Fault Tolerance only feature). After that click “Next”. - Choose the network port f