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.
  • I don't see how it's nonsense. Perhaps you didn't understand. Perhaps it wouldn't be an issue. It doesn't matter, as it doesn't address the root issue.

    The root issue is that, unless if I missed something, it's impossible to configure the UTM to update name.onedomain.com, name.anotherdomain.com, and name.thirddomain.com.
  • 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;
  • Hi, is wildcard support for NameCheap new in 9.2?

    FWIW, my 9.1x configuration is attached, and is working. I have not tried namecheap in 9.2 yet.

    Barry
  • Thanks for the reply Barry.

    This part works OK. The problem is with multiple domains. To use your example, if you cloned this configuration, but changed mydomain.net to myseconddomain.net, two things would happen:

    1) You would get the error: The DynDNS mapping object with the name '@' already exists.

    2) Assuming you get past the first error, the alias domains (home, fw, www, house) for the second, and subsequent domains, myseconddomain.net) would not be set in Namecheap.

    Sometimes I have problems adequately describing something in my head. Hopefully, this response will be more clear.

    Thanks.
  • The root issue is that, unless if I missed something, it's impossible to configure the UTM to update name.onedomain.com, name.anotherdomain.com, and name.thirddomain.com.


    Could this be worked around with name.otherdomain.com and name.thirddomain.com as CNAMEs pointing to name.onedomain.com?
  • RChadwick, thanks for posting that patch. You're right, it's not merged in UTM's ddclient (but also not in official ddclient). I didn't realize that wildcard is not supported for namecheap, my bad!

    I'll see if we can update ddclient to the recently released 3.8.2 version and if I can apply the patch, maybe with v9.201 but I can't promise.

    Until then, the UTM ddclient is not compiled, feel free to modify /usr/sbin/ddclient on your own, the patch is rather simple [;)]

    But I guess the initial issue persists: Multiple '@' hostnames. Can you provide a working ddclient configuration file where this works?
  • Thanks for the response. I'm glad I was finally able to explain it properly. 

    I don't have a working ddclient config file. I'm not much of a Unix guy, and didn't know ddclient until I looked into this. If there's anything else I can do to help, I'm happy to do it.
  • And I see everything old is new again.  [:)]

    I am back on this topic now as I had to shimmy around a few things since dyndns.org is shutting down their free service.  

    I decided to try to try my hand at fooling Sophos UTM into updating the root record for multiple domains again... it does not appear to be possible as RChadwick pointed out when he took up my mantle from his thread here: https://community.sophos.com/products/unified-threat-management/astaroorg/f/81/t/65604 and mine: https://community.sophos.com/products/unified-threat-management/astaroorg/f/53/t/33846

    "Client Need:"
    I need to update the root record for 3 domains:
    @.mydomain.com
    @.mydomain.net
    @.mydomain.org

    These records all have to be A records at Namecheap in order to get the MX records for my mail host to work properly.  (2 MX records for @ pointing to the 2 mail servers).

    If I set @ to a CNAME and then use "unique" names for each domain:
    ddns-com.mydomain.com
    ddns-net.mydomain.net
    ddns-org.mydomain.org

    I can KIND of work around the issue - a HTTP/HTTPs call to mydomain.com works if my host interprets the HTTP header.  (Thank goodness I have a Sophos box to do that!)  But mail services to "@" fail miserably until I return each of the domain @ records to an A record.

    Setting @ as an alias on the "unique" domain hosts doesn't work either, it simply updates the first host/domain combo and ignores the rest.

    For now my IP is fairly stable, I can go into Namecheap and force the A record for @.  I have considered just setting up ANOTHER DDNS client on the inside of the network to update the @ and/or MAIL records... but it seems like such a waste when I keep hoping the Sophos box can do it.