Guest User!

You are not Sophos Staff.

[9.195-6][notaBUG] DynDNS only allows onedomain name

Using Namecheap, it is not possible to configure more than one DynDNS instance with the same hostname. While trying to save the configuration, it returns the error: 
The DynDNS mapping object with the name '@' already exists.
Something needs to be put in for a hostname. @ acts as a wildcard, but can only be used once because of this issue.
Parents
  • Maybe you could check to see if this was implemented in the ddclient you use? This is the patch:

    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;
Reply
  • Maybe you could check to see if this was implemented in the ddclient you use? This is the patch:

    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;
Children
No Data