10-25-2010 12:55 PM - edited 03-06-2019 01:43 PM
I have a router that is currently using DHCP to obtain its IP addressing, however I would like to have the router register its DHCP address on DNS so it is reachable by name. I have seen examples of using the HTTP get within IP SLA, however I am not getting the results that I need. Here is the configuration of the SLA monitor.
ip sla 1
http get http://freedns.afraid.org/dynamic/update.php?<key>
frequency 3600
ip sla schedule 1 life forever start-time now
The problem I am having is that the HTTP get executes a PHP script that updates the IP. The problem is I am not able to add the question mark (?) within the command as IOS traps this as an error of some sort. Is there a away of formulating the command in such a way to include the question mark so the PHP script will execute to update the DNS its recieved from DHCP.
Regards,
Karim
Solved! Go to Solution.
10-25-2010 01:09 PM
Hi Karim,
Cisco have an answer for this. Enter the command and just before you get to the ?, press CTRL+V and then enter the question mark. This will prevent the IOS seeing it as a request for help.
See the notes against step 8 here: http://www.cisco.com/en/US/docs/ios/12_3/12_3y/12_3ya8/gt_ddns.html#wp1203122
Regards,
Stuart.
10-25-2010 01:09 PM
Hi Karim,
Cisco have an answer for this. Enter the command and just before you get to the ?, press CTRL+V and then enter the question mark. This will prevent the IOS seeing it as a request for help.
See the notes against step 8 here: http://www.cisco.com/en/US/docs/ios/12_3/12_3y/12_3ya8/gt_ddns.html#wp1203122
Regards,
Stuart.
10-25-2010 09:12 PM
Thank You!! That worked like a charm!! after waiting for the update to occur, I looked at the SLA status and found no errors and a successful update on the DNS server.
Thanks
Karim
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide