Cisco Routers and Dynamic DNS
Posted by Josh on Thu 19 Aug 2010Categories: Cisco , Cisco Routers , Voice LAB - [13] Comments
This short post demonstrates using ‘ip sla’ and freedns.afraid.org for dynamic dns.
If you are not familiar with FreeDNS, it is simply a free / shared dns host. Individuals voluntarily host their domains on the FreeDNS servers and allow other users to create dns subdomains with their domain name.
Here are the steps
- Create an account with the FreeDNS website
- Add a new subdomain
- Click the ‘Registry’ link
- Click on a domain you would like to link to…e.g. mooo.com
- Enter text in the subdomain field … e.g. blindhog
- Get the dynamic dns url
- Click the ‘Dynamic DNS’ link
- Right-Click on the ‘Direct URL’ link next to your new subdomain and select ‘Copy Link Location’
- Paste this link into notepad. We will use it later.
- Login to your cisco router and get into config mode.
- Configure an ‘http get’ based sla monitorNote: Only enter the first part of the url (before the question mark) and do not hit enter. Press ‘ctrl+v’ then enter the second half of the url including the question mark. If you do not use ‘ctrl+v’ before the question mark will be used to display options of the ‘http get’ command.
ip sla 1
http get http://freedns.afraid.org/dynamic/update.php?VEc..Or
ip sla monitor 1
type http operation get url http://freedns.afraid.org/dynamic/update.php?VEc..
- Create a new ip sla schedule to activate the update.
ip sla schedule 1 lifetime forever start-time now
Orip sla monitor schedule 1 life forever start-time now
- Use the following commands to troubleshoot
show ip sla configuration
show ip sla statisticsdebug ip sla trace
debug ip sla errorOr
show ip sla monitor configuration
show ip sla monitor statisticsdebug ip sla monitor trace
debug ip sla monitor error

August 21st, 2010 at 1:08 pm
why not?:
ip ddns update method DYNDNS
HTTP
add http://user:pass@members.dyndns.org/nic/updatesystem=dyndns&hostname=host.dyndns.tv&myip=
August 21st, 2010 at 6:20 pm
option12,
It is really just my personal preference.
1) I have domains hosted with freedns
2) I have had real stability issues with dyndns.
3) FreeDNS has more public domains to choose from.
4) There are already plenty of dyndns posts already written.
Josh
August 23rd, 2010 at 8:50 am
I love that, nice use of SLAs!
September 4th, 2010 at 12:54 am
[...] install, a quiet hotel room can be a great place to study. In a previous post, you learned how to configure your Cisco router for dynamic DNS. This post will show you how to configure remote access vpn on a Cisco router to access your home [...]
November 17th, 2010 at 5:11 am
great post,
can’t wait to try it!
thanks
November 17th, 2010 at 6:12 am
[...] Fonte: blindhog.net Categories: Cisco, Internet, Redes Tags: afraid.org, Cisco @en, ddns, dns, freedns, ip sla Comentários (0) Trackbacks (0) Escrever um comentário Trackback [...]
December 2nd, 2011 at 9:20 am
For some reason I keep getting this error and the dynamic DNS entry does not register. What can be the cause ?
*Dec 2 14:58:53.907: IP SLAs(1) Scheduler: saaSchedulerEventWakeup
*Dec 2 14:58:53.907: IP SLAs(1) Scheduler: Starting an operation
*Dec 2 14:58:53.907: IP SLAs(1) http operation: Starting http operation
*Dec 2 14:58:53.907: IP SLAs(1) dns operation: Starting dns operation
*Dec 2 14:58:53.907: IP SLAs(1) dns operation: Query name – freedns.afraid.org
*Dec 2 14:58:53.907: IP SLAs(1) dns operation: Query name server – 192.168.137.1
*Dec 2 14:58:53.907: IP SLAs(1) dns operation: actual target queried = freedns.afraid.org
cisco1#
*Dec 2 14:58:56.731: IP SLAs(2) Scheduler: saaSchedulerEventWakeup
*Dec 2 14:58:56.731: IP SLAs(2) Scheduler: Starting an operation
*Dec 2 14:58:56.731: IP SLAs(2) http operation: Starting http operation
*Dec 2 14:58:56.731: IP SLAs(2) dns operation: Starting dns operation
*Dec 2 14:58:56.731: IP SLAs(2) dns operation: Query name – freedns.afraid.org
*Dec 2 14:58:56.731: IP SLAs(2) dns operation: Query name server – 192.168.137.1
*Dec 2 14:58:56.731: IP SLAs(2) dns operation: actual target queried = freedns.afraid.org
cisco1#
*Dec 2 14:59:02.907: IP SLAs(1) dns operation: Error code=16
*Dec 2 14:59:02.907: IP SLAs(1) http operation: Wait DNS – incorrect event
*Dec 2 14:59:02.907: IP SLAs(1) Scheduler: Updating result
cisco1#
*Dec 2 14:59:05.731: IP SLAs(2) dns operation: Error code=16
*Dec 2 14:59:05.731: IP SLAs(2) http operation: Wait DNS – incorrect event
*Dec 2 14:59:05.731: IP SLAs(2) Scheduler: Updating result
December 2nd, 2011 at 9:47 am
Never mind…it was pointing to wrong DNS server. Sorry.
December 3rd, 2011 at 7:53 am
will this work on Linksys E1200?
January 30th, 2012 at 3:09 am
What about if your cisco doesn’t support ip sla command? For example, I have a 2651 that doesn’t support any of the ip sla subset commands.
March 5th, 2012 at 4:43 am
Option12, I’ve not had a lot of luck with the ip ddns update method commands. I’ve seen them fail and report success than actually succeed. I’m going to get the http get a try to see how it works.
May 13th, 2012 at 6:57 pm
I’m actually running this on my Cisco 2650 and the debug looks good.. .but it’s not updated the IP addresses… any suggestions?
May 14 06:35:11.535: IP SLAs(10) Scheduler: saaSchedulerEventWakeup
May 14 06:35:11.535: IP SLAs(10) Scheduler: Starting an operation
May 14 06:35:11.535: IP SLAs(10) http operation: Starting http operation
May 14 06:35:11.535: IP SLAs(10) dns operation: Starting dns operation
May 14 06:35:11.535: IP SLAs(10) dns operation: Query name – freedns.afraid.org
May 14 06:35:11.535: IP SLAs(10) dns operation: Query name server – 205.152.128.23
May 14 06:35:11.535: IP SLAs(10) dns operation: actual target queried = freedns.afraid.org
May 14 06:35:11.647: IP SLAs(10) dns operation: Query return code – no error
May 14 06:35:11.647: IP SLAs(10) dns operation: received IP Address 69.42.215.252
May 14 06:35:11.651: IP SLAs(10) dns operation: RTT=114
May 14 06:35:11.732: IP SLAs(10) http operation: Sent 72 of 72 bytes
May 14 06:35:11.732: IP SLAs(10) http operation: Wait connection – connected
May 14 06:35:11.812: IP SLAs(10) http operation: Time to first byte: 162 ms
May 14 06:35:11.816: IP SLAs(10) http operation: RTT=280
May 14 06:35:11.816: IP SLAs(10) Scheduler: Updating result
May 22nd, 2013 at 2:35 am
Hi,
IOS supports DDNS for a long time, no need to use IP SLA.
ip ddns update method afraid.org
HTTP
add http://freedns.afraid.org/dynamic/update.php?VEc..
int dialer 1 (or whatever your OFFICIAL IP address end up on)
ip ddns update afraid.org
regards,
Michael