<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

IPv4 DDNS for dns.he.net on Cisco IOS

Published on
10,200 Points
4,200 Views
Last Modified:
Approved
As dyndns has reduced the capabilities of the free service, I looked around for other free providers of Dynamic DNS service.

After testing several I decided to move my DNS hosting to Hurricane Electric as then domains that require dynamic hostnames can be managed with dynamic A records instead of the CNAME required when using the dyndns free service.

The configuration as below is for IPv4 dynamic addressing as provided by most Internet Service Providers on ADSL or Cable (broadband) connections when using the free DNS and DDNS service as provided by dns.he.net

The below has been tested on a Cisco 1812 running c181x-advipservicesk9-mz.151-4.M4.bin on a BT FTTC connection which uses PPPoE over VDSL where the PPPoE interface has a dynamic address. It has also been tested on a Cisco 877 running c870-advipservicesk9-mz.151-4.M4.bin on several other UK ADSL and ADSL2+ connections

It does not cover changing the IPv4 termination address for a he.net IPv6 Tunnel.

In Global mode

ip ddns update method <method-name>
 HTTP
  add http://<f.q.d.n>:<password>@ipv4.dyn.dns.he.net/nic/update?hostname=<h>&myip=<a>

Open in new window


Then on the dynamic addressed interface (usually Dialer 1)
 ip ddns update hostname <f.q.d.n>
 ip ddns update <method-name> host ipv4.dyn.dns.he.net

Open in new window



<method-name> This is the name that you want to give the DDNS update, I usually use dyn.he.net
<f.q.d.n> This is fully qualified domain name that is configured for Dynamic DNS on the dns.he.net control panel
<password> This is the password for the fully qualified domain name that is configured for Dynamic DNS on the dns.he.net control panel
<h> This is an internal Cisco IOS variable for the hostname that it gets from the configuration on the interface
<a> This is an internal Cisco IOS variable for the dynamic address on the interface  

Presuming that the method name is dyn.he.net, the hostname being used is router.domain.com and the password is SuperSecretPassword the completed configuration commands should look something like this

In Global mode

ip ddns update method dyn.he.net
 HTTP
  add http://router.domain.com:SuperSecretPassword@ipv4.dyn.dns.he.net/nic/update?hostname=<h>&myip=<a>

Open in new window


Then on the dynamic addressed interface (usually Dialer 1)
 ip ddns update hostname router.domain.com
 ip ddns update dyn.he.net host ipv4.dyn.dns.he.net

Open in new window


It is not possible to copy and paste all of the config directly into a console session as the line that begins with "add" contains a question mark.

To enter a question mark <?> in IOS press and hold ctrl, press v, release both then press ?
0
Comment
Author:ArneLovius
0 Comments

Featured Post

Get Cisco Certified in IT Security

There’s a high demand for IT security experts and network administrators who can safeguard the data that individuals, corporations, and governments rely on every day. Pursue your B.S. in Network Operations and Security and gain the credentials you need for this high-growth field.

Join & Write a Comment

This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month