@ Symbol For NameCheap Dynamic DNS



  • In 2.3 I can't seem to put the @ symbol for the hostname section of a dynamic DNS entry.
    It tells me that there's invalid characters.

    I already opened a bug report, but in the mean time is there any workaround?


  • Rebel Alliance Developer Netgate

    Have you tried with "@." instead of just "@"?

    The input validation is the same on 2.3 as 2.2 for that field.



  • @jimp:

    Have you tried with "@." instead of just "@"?

    The input validation is the same on 2.3 as 2.2 for that field.

    Yes.  If I put a @ in the hostname field, regardless of the period, I get

    The following input errors were detected:

    The hostname contains invalid characters.

    If I put "@.words" that works, but "@" does not and "@." does not.

    But since the update URL is

    https://dynamicdns.park-your-domain.com/update?host=<host>&domain=<domain>&password=<pass>&ip=</pass></domain></host>
    

    The @ symbol needs to be accepted for the hostname alone.


  • Rebel Alliance Developer Netgate

    Can you try this patch using the System Patches package?

    http://files.atx.pfsense.org/jimp/patches/namecheap-host-fix-6122.patch



  • As noted in the ticket, with that patch, it allows the @ symbol, and I can also confirm that it correctly updated the IP at Namecheap's end.


  • Rebel Alliance Developer Netgate

    Thanks for the follow-up. The fix is committed, and it will be in 2.3.1.



  • I've updated to 2.3_1 but the @ character is still not accepted.

    These are results of the test of the patch, am I doing something wrong?

    /usr/bin/patch --directory=/ -t -p1 -i /var/patches/573a5af786155.patch --check --forward --ignore-whitespace
    
    Hmm...  Looks like a unified diff to me...
    The text leading up to this was:
    --------------------------
    |diff --git a/src/usr/local/www/services_dyndns_edit.php b/src/usr/local/www/services_dyndns_edit.php
    |index 5ca0714..ccac09a 100644
    |--- a/src/usr/local/www/services_dyndns_edit.php
    |+++ b/src/usr/local/www/services_dyndns_edit.php
    --------------------------
    No file to patch.  Skipping...
    Hunk #1 ignored at 147.
    1 out of 1 hunks ignored while patching src/usr/local/www/services_dyndns_edit.php
    done
    
    

    I had to change "Path Strip Count" to 2 and that got it to patch to apply and I am able to use the @ character now and it's updating again.  Thanks!


  • Rebel Alliance Developer Netgate

    @gyNejNpp82XB:

    I've updated to 2.3_1 but the @ character is still not accepted.

    2.3_1 is not 2.3.1. 2.3_1 is really 2.3.0_1, it was a minor NTP update.

    2.3.1 is not yet released, but will be in the next day or so (unless we find any problems)


Log in to reply