Netgate SG-1000 microFirewall

Author Topic: @ Symbol For NameCheap Dynamic DNS  (Read 1069 times)

0 Members and 1 Guest are viewing this topic.

Offline Trel

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: +11/-1
    • View Profile
@ Symbol For NameCheap Dynamic DNS
« on: April 13, 2016, 08:24:30 am »
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?

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21739
  • Karma: +1503/-26
    • View Profile
Re: @ Symbol For NameCheap Dynamic DNS
« Reply #1 on: April 13, 2016, 08:54:57 am »
Have you tried with "@." instead of just "@"?

The input validation is the same on 2.3 as 2.2 for that field.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline Trel

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: +11/-1
    • View Profile
Re: @ Symbol For NameCheap Dynamic DNS
« Reply #2 on: April 13, 2016, 09:09:24 am »
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

Quote
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

Code: [Select]
https://dynamicdns.park-your-domain.com/update?host=<host>&domain=<domain>&password=<pass>&ip=<ip>
The @ symbol needs to be accepted for the hostname alone.
« Last Edit: April 13, 2016, 09:21:31 am by Trel »

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21739
  • Karma: +1503/-26
    • View Profile
Re: @ Symbol For NameCheap Dynamic DNS
« Reply #3 on: April 13, 2016, 09:29:52 am »
Can you try this patch using the System Patches package?

http://files.atx.pfsense.org/jimp/patches/namecheap-host-fix-6122.patch
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline Trel

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: +11/-1
    • View Profile
Re: @ Symbol For NameCheap Dynamic DNS
« Reply #4 on: April 13, 2016, 12:29:42 pm »
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.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21739
  • Karma: +1503/-26
    • View Profile
Re: @ Symbol For NameCheap Dynamic DNS
« Reply #5 on: April 13, 2016, 12:32:03 pm »
Thanks for the follow-up. The fix is committed, and it will be in 2.3.1.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline gyNejNpp82XB

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: @ Symbol For NameCheap Dynamic DNS
« Reply #6 on: May 16, 2016, 06:59:26 pm »
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?
Code: [Select]
/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!

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21739
  • Karma: +1503/-26
    • View Profile
Re: @ Symbol For NameCheap Dynamic DNS
« Reply #7 on: May 16, 2016, 07:10:30 pm »
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)
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!