![]() ![]() This article will show you how you can configure your Cisco router so it can support the DDNS service with and. This eliminates the need for a static IP address, since the DDNS provider will automatically update its DNS records with your dynamic IP address every time it changes.įrom Cisco IOS version 12.4 onwards, Cisco routers have built-in support for a variety of DDNS providers, making it much easier and a more reliable alternative, as you no longer require a PC in your network that will run the DDNS provider's client program. DDNS providers allow the registeration and creation of Fully Qualified Domain Names (FQDN) that can be mapped to home or branch office Internet connections without cost. The solution to the above problem is named 'DDNS' - Dynamic DNS Service. While this is the recommended setup for most companies doing serious business, it doesn't really apply to home users or small branch offices because of the increased cost for static IP addresses. If you had a domain name, e.g Firewall.cx, you would then map your static IP address to your domain (via DNS) so when you hit your domain name, you would be directed to your statically assigned IP address and access the resources you need. This ensures that your services are always reachable using the same IP address or domain name. The format of the update message is different from server to server.Hosting your own webserver or email server would normaly require a static IP address from your ISP. Set event-options event-script file dyn-dns-update.xslt Set event-options policy dyn-dns-updater then event-script dyn-dns-update.xslt Set event-options policy dyn-dns-updater attributes-match ssage matches "EVENT Add" Set event-options policy dyn-dns-updater events SYSTEM Set system services apply-macro dyndns-client1 username XXXX Set system services apply-macro dyndns-client1 type 3322 ![]() Set system services apply-macro dyndns-client1 password XXXX Set system services apply-macro dyndns-client1 hostname Script is uploaded and relevant config as well. Set system services apply-macro dyndns-client1 username link is added to the dns-0-matic and comes active Set system services apply-macro dyndns-client1 type dns-o-matic Set system services apply-macro dyndns-client1 password dynamicdns Set system services apply-macro dyndns-client1 hostname xx. Warning: named-service subsystem not running - not needed by configuration. Oh, and I'm doing this on a J2320, not an run show system services dynamic-dns client Maybe someone can post an updated version of the script that logs freedns correctly? Looks like there may be missing logic to log the actual result but I haven't dug into it yet. And if you have ppoe then see some other threads about the script to make sure you match the correct message.Īnd FYI, the script seems to only log "ERROR: Address has not changed." in the dyndns.log file. To test it, just disable/commit enable/commit your outside dhcp interface. The event-options part is just like everyone else says, and it goes in the base of the heirarchy:Īnd the freedns part that works for me looks like this, just the type and url parameters are all that's needed, and you can even use https instead of the http direct urls that freedns gives you: ![]() Script goes in /var/db/scripts/event/ like the instructions say. Just in case anyone wants to get the script working with a freedns direct update url instead of updating freedns through a dnsomatic account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |