Solved

Cisco 877W: updating TWO DynDNS names

Posted on 2011-09-24
12
1,036 Views
Last Modified: 2012-05-12
I need use 2 dyndns names. Looks logical using for that one (when I used two methods result is the same) update method:
ip ddns update method my_dyndns
 HTTP
  add http://<user>:<password>@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a>
exit
 interval maximum 0 5 0 0
 interval minimum 0 5 0 0
exit

But when I make
int Dialer0
...
 ip ddns update hostname name1.dyndns.org
 ip ddns update my_dyndns
 ip ddns update hostname name2.dyndns.org
 ip ddns update my_dyndns
...
only last name (name2) exists in running-config

What's wrong?
0
Comment
Question by:MiZN
  • 5
  • 4
  • 3
12 Comments
 
LVL 22

Expert Comment

by:eeRoot
ID: 36595427
Can you post the results of these 2 commands -

sh ip ddns update
sh ip ddns update method
0
 
LVL 44

Expert Comment

by:Darr247
ID: 36595599
Rather than trying to discover the undocumented IOS functions
(like, specifying hostname1= and hostname2= in the method definition, then 'stacking' the names, e.g.
ip ddns update hostname1 name1.dyndns.org hostname2 name2.dyndns.org
in the configuration), which may or may not work with another version of IOS (if you can even get that to work with your current IOS version, whatever that is), I would just have the router update 1 hostname and install a software client on 1 of the servers to update the other hostname.
0
 

Author Comment

by:MiZN
ID: 36596195
eeRoot:
Router#sh ip ddns up    
Dynamic DNS Update on Dialer0:
  Update Method Name            Update Destination
  name1_dyndns                    not available
Router#sh ip ddns up m
Dynamic DNS Update Method: name1_dyndns
  Dynamic DNS update via HTTP based protocols
    URL used to add DNS records: http://<user>:<pass>@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a>
    URL used to remove DNS records:
  Maximum update interval: 0 days 5 hours 0 minutes 0 seconds
  Minimum update interval: 0 days 5 hours 0 minutes 0 seconds
Dynamic DNS Update Method: nqme2_dyndns
  Dynamic DNS update via HTTP based protocols
    URL used to add DNS records: http://<user>:<pass>@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a>
    URL used to remove DNS records:
  Maximum update interval: 0 days 5 hours 0 minutes 0 seconds
  Minimum update interval: 0 days 5 hours 0 minutes 0 seconds

May be I need change <h> by name1(2).dyndns.org and/or omit myip? Or should I add remove after each add command?

Darr247:
Now I use 2 DDNS clients, and I'd like wake them on LAN (WAN in reality). On powering off device I can't use any software.
0
 
LVL 22

Expert Comment

by:eeRoot
ID: 36597123
The only thing that seems strange is the name of the second entry is "nqme2_dyndns" instead of name2

Have you tried removing one of the "ip ddns update my_dyndns" commands so it looks like this?
 ip ddns update hostname name1.dyndns.org
 ip ddns update hostname name2.dyndns.org
 ip ddns update my_dyndns

Also, maybe remove the "interval minimum 0 5 0 0" command or set istso there is time gap between the min and max
0
 
LVL 44

Expert Comment

by:Darr247
ID: 36599277
I think an interval command isn't needed at all... then it should update only when the outside IP changes.
0
 

Author Comment

by:MiZN
ID: 36599917
eeRoot:
1. nqme2 was MY miswriting
2.
ip ddns update hostname name1.dyndns.org
ip ddns update hostname name2.dyndns.org
ip ddns update my_dyndns
and making intervals different
gives
Router#sh ip ddns update
Dynamic DNS Update on Dialer0:
  Update Method Name            Update Destination
  my_dyndns                     not available
Router#sh ip ddns update m
Dynamic DNS Update Method: my_dyndns
  Dynamic DNS update via HTTP based protocols
    URL used to add DNS records: http://<user>:<psw>@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a>
    URL used to remove DNS records:
  Maximum update interval: 0 days 5 hours 0 minutes 0 seconds
  Minimum update interval: 0 days 4 hours 0 minutes 0 seconds
Router#
As earlier, only second (last) hostname leaves in running config...
Option
debug ip ddns update at the beginning of config
gives no inofmation during reloading router
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 22

Expert Comment

by:eeRoot
ID: 36707536
You may want to open a ticket with Cisco TAC, the code does not appear to be behaving as it should then.
0
 

Author Comment

by:MiZN
ID: 36710645
I'll try with TAC. And at https://supportforums.cisco.com/message/809837#809837

I found such advice:
Set your router to update a single record, and then use CNAME records to point all of your other hostnames at that record.

But I don't know how to do that...
0
 
LVL 44

Expert Comment

by:Darr247
ID: 36712178
DynDNS doesn't offer CNAME/alias updating on their free service.
I think you'd have to pay for at least their DynDNS Pro level ($15/year).
I would ask there before paying though... if both end with the same domain.tld you might be able to use an A Record instead of CNAME. That would still require a paid account. Their Webhop feature might work for that if they don't have the same domain.tld ending, too.
0
 

Accepted Solution

by:
MiZN earned 0 total points
ID: 36894954
Solved. I don't completely understand how. All what I added and changed is below. Important things are in bold
...
hostname Router
...
ip dhcp excluded-address 192.168.1.2 192.168.1.9
ip dhcp excluded-address 192.168.1.63
ip dhcp excluded-address 192.168.1.100
!
ip dhcp pool 877W
   network 192.168.1.0 255.255.255.0
   default-router 192.168.1.1
   dns-server 192.168.1.1
   domain-name home
!
!
ip dhcp update dns both
ip cef
ip domain name home
ip host name1.dyndns.org 192.168.1.63
ip host name2.dyndns.org 192.168.1.2
ip name-server 156.154.70.22
ip name-server 156.154.71.22
ip dhcp-client update dns server both
ip ddns update method name1
 HTTP
  add http://<user>:<password>@members.dyndns.org/nic/update?system=dyndns&hostname=name1.dyndns.org&myip=<a>
exit
 interval maximum 0 5 0 0
 interval minimum 0 5 0 0
exit
ip ddns update method name2
 HTTP
  add http://<user>:<password>@members.dyndns.org/nic/update?system=dyndns&hostname=name2.dyndns.org&myip=<a>
exit
 interval maximum 0 5 0 0
 interval minimum 0 5 0 0
exit
...
int Dialer0
 ip dhcp client update dns
 ip ddns update name1
 ip ddns update name2
 ip address negotiated
...
 no ip redirects
...
exit

Nevetheless, in debug I looked strings like
Adding DNS mapping for Router.home <=> 91.79.199.117
But both hosts have right IP.
May be more elagant solution exist, but I don't know it. Due to both hosts have same IP, it is possible to set IP to second host without DDNS...
0
 
LVL 22

Expert Comment

by:eeRoot
ID: 36895002
Ah, that method makes sense.  Good example of code, thanks for posting the solution.
0
 

Author Closing Comment

by:MiZN
ID: 36938185
I'm not sure, that it's a simplest solution
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now