Dynamic DNS & Namecheap
-
@thearamadon thanks, worked perfect!
-
@steveits Can confirm, this fix works for me on pfSense Plus 22.05 to fix my namecheap dynDNS problem.
System Patches ID: 70db168b7f7eb4d4e702f965aa4956e93340575f
Thanks!
-
@mooky1977 cool, let's hope it gets rolled into the next pfsense release.
-
@zoltrix I can guarantee it... https://docs.netgate.com/pfsense/en/latest/releases/23-01.html
-
-
@zoltrix said in Dynamic DNS & Namecheap:
off the mark
My point of view :
2020 : namecheap changed the text value when an IP was updated.
Like "IP was accepted" to "IP was changed".
On the pfSense side, the "IP was changed" didn't match as an "Ok" result, so, to be safe, it was treated as an no-ok resulat, the GUI showed a red IP message.
But : surprise : the IP was updated on the namecheap side.
Then, several month later, the returned text values changed again.
To make dyndns namedcheap work again, code had to change again on the pfSense side.
This is just what I could call "development", not really a bug. The results is always : it doesn't work anymore for the end user.
This year, the same thing happened.
A pfSense bug ? Noop, namecheap changed the returned text value again.
Like (example) "From "Ok" to "OK".Now I have my ideas why they do this.
What I don't get is : no messages on whatever media to explain that something has changed.
And because we are all curious, and some of us even want to learn and understand why things have changed.
But nothing.
Just a confirmation on the namecheap forums, months later : "yep, something changed". -
Hi @jimp, @johnpoz, @gertjan, thanks for all of your hard work on pfSense! I shudder to think what my world would be like without it.
Question for those of you who use Namecheap for DDNS. Is it possible to use Namecheap Web hosting DNS (aka cPanel) with pfSense DDNS? Or will I need to move my DNS records to Namecheap's BasicDNS to set things up using the instructions @jimp has given above (I suspect the answer is "yes")?
Having created DDNS records in the Namecheap Web hosting DNS's cPanel UI, the records created provide a URL to use for DDNS, not a password. Without passwords it seems I'm at an impasse.
@jamesg246 refers to a "namecheap http update method" in this thread. I suspect I could use this with the cPanel DDNS. Could someone point me at directions for how to set this up?
Or feel free to tell me I'm trying to do the impossible (or silly) and would be wise to take the time and move my DNS records from cPanel to their Basic DNS.
Thanks!
-
@renarde3 I just have regular namecheap domain hosting. click on manage, then the advanced dns tab.
https://www.namecheap.com/support/knowledgebase/article.aspx/36/11/how-do-i-start-using-dynamic-dns/
using pfsense+ 22.05, I used the patch refrenced above, but installed 23.01-RC yesterday and removed that and one other patch. all working great!
-
Hi @cloudless-smart-home, thanks for your quick response.
I've successfully set up the DDNS records in the Namecheap Webhosting (aka cPanel) UI, but have not been able to figure out how to use the URLs it generates to communicate with the DDNS clients I have set up in pfSense. That's where I'm getting stuck.
From this image in the Namecheap Domain List, I suspect I need to switch to their BasicDNS (Webhosting DNS) to make this work. I was hoping to get confirmation before I have to recreate my DNS entries.
-
@renarde3
https://www.namecheap.com/support/knowledgebase/article.aspx/36/11/how-do-i-start-using-dynamic-dns/will walk you through the process. look at the other links on that page too if it's not clear.
https://www.namecheap.com/support/knowledgebase/article.aspx/595/11/how-do-i-enable-dynamic-dns-for-a-domain/
-
Hi @cloudless-smart-home, thanks again for the links.
I changed the Namecheap DNS I was using from Webhosting to BasicDNS. Then I was able to follow @jimp's instructions as posted above.
It was a pain having to move all of my DNS entries from cPanel to their BasicDNS (the Advanced DNS UI for entering records is klunky) but at least it's done now, and the DDNS entries are correctly pulling the WAN IP from the pfSense gateway.
Thanks!
-
Wanted to update for 2024. I'm moving over from a google domain (using DDNS and PFsense) because they moving all domains to square space. Square space doesn't have DDNS from what I can tell. I transferred my domain to Namecheap. Flowed instructions by @jimp for the most part except added multiple hosts for different locations and services (OpenVPN, Nextcloud... other stuff).
If transferring from google to namecheap:
No special account required- Navigate to Domain List -> your.domain -> Manage -> Domain
- Next to NAMESERVERS change from "custom DNS" to "namecheap Basic DNS"
In Namecheap enable Dynamic DNS for your domain:
- Navigate to Domain List -> your.domain -> Manage -> Advanced DNS
- Next to Dynamic DNS, change the slider to enabled
- Copy the random password for later
- Under Dynamic DNS, click the plus to add
- Type = "A + Dynamic DNS Record"
- Host = "yourhost"
- Value = "127.0.0.0" (can be anything really, this will update)
- TTL = "Automatic"
On pfSense:
- Navigate to Services -> Dynamic DNS
- + Add
- Service Type = "Namecheap"
- Hostname = "yourhost" "your.domain" (respectively in the two boxes)
- Username = (leave blank)
- Password = random password copied from Namecheap Dynamic DNS section
- "Save and force" should update the the IP listed under the value on the Namecheap record after a refresh (from 127.0.0.0 to your public IP)
-
Not directly linked to NameCheap, but may be useful for most users here: