Bugs item #2954776, was opened at 2010-02-19 06:49
Message generated for change (Comment added) made by wimpunk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=676128&aid=2954776&group_id=116817
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: service configuration
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Bandlow (bandlow)
Assigned to: wimpunk (wimpunk)
Summary: Namecheap Update with same Hostnames in different domains
Initial Comment:
The patch from hankesels works fine, please add it to the trunk.
[Avatar]
2008-02-20 16:59:29 UTC
namecheap updates have this format:
host=[host_name]&domain=[domain.com]&password=[domain_password]&ip=[your_ip]
The host_name cannot contain the domain part. This causes problems when update of multiple namecheap hosted domains is attempted: Since the configuration is a hash keyed on host, hosts of the same name in multiple domains get overwritten in the hash.
The following small patch allows specifying a fully qualified host in the configuration, so that the hash keys are different, but strips off the domain part just before sending the update. The patch is against 3.7.3.
Han
$ diff -up ddclient.old ddclient
--- ddclient.old 2008-02-21 00:57:17.000000000 +0900
+++ ddclient 2008-02-21 01:36:42.000000000 +0900
@@ -3060,8 +3060,11 @@ sub nic_namecheap_update {
my $url;
$url = "http://$config{$h}{'server'}/update";
- $url .= "?host=$h";
- $url .= "&domain=$config{$h}{'login'}";
+ my $domain = $config{$h}{'login'};
+ my $host = $h;
+ $host =~ s/(.*)\.$domain(.*)/$1$2/;
+ $url .= "?host=$host";
+ $url .= "&domain=$domain";
$url .= "&password=$config{$h}{'password'}";
$url .= "&ip=";
$url .= $ip if $ip;
----------------------------------------------------------------------
>Comment By: wimpunk (wimpunk)
Date: 2010-02-21 19:42
Message:
Sorry, only patches which apply cleanly against the latest version of
ddclient will be considered.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=676128&aid=2954776&group_id=116817
|