OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: mfsense on October 26, 2020, 06:59:59 AM

Title: [SOLVED] Dynamic DNS - Namecheap doesn't work but cloudflare does
Post by: mfsense on October 26, 2020, 06:59:59 AM
Hi, wondering if someone else is having an issue updating their IP via Services > Dynamic DNS with namecheap.

I currently use the same service with cloudflare and it works fine but with name cheap i am getting this error on the logs

/services_dyndns.php: Dynamic DNS: (Error) No Records updated. A record not Found

this is my config:
Enabled: checked
Service type: Namecheap
Interface Monitor: WAN
Hostname: mydomain.com
MX: <empty>
Wildcards: unchecked
Verbose logging: checked
username: <empty>
password: <Dynamic DNS Password provided by namecheap>

please let me know if i made a dummy mistake.
Thank you!

Edit: currently on opnsense 20.7.4, but 20.1.9 also had the same issue
edit2: also wanted to note that namecheap api works fine with curl
curl "https://dynamicdns.park-your-domain.com/update?host=<www.mydomain.com>&domain=<mydomain.com>&password=<namecheap ddns pw>&ip=<my current ip>"
Title: Re: Dynamic DNS - Namecheap doesn't work but cloudflare does
Post by: AhnHEL on October 26, 2020, 09:56:50 PM
Exact settings as mine and I'm not having any issues.

Check your Namecheap Account under Advanced DNS.  There is a "Status" toggle under Dynamic DNS that can disable your Records.  Its at the bottom below Host Records.
Title: Re: Dynamic DNS - Namecheap doesn't work but cloudflare does
Post by: mfsense on October 27, 2020, 02:34:44 AM
thanks for the response

finally figured it out
opnsense settings was right but it only worked when I correctly set the host on Namecheap

under Advanced DNS >  Dynamic DNS
A + Dynamic DNS Record host should be set with @ for your main domain and for sub domain you only need to set the sub domain excluding the domain.

for example
host should be 'www' for www.mydomain.com
host should be '@' for mydomain.com
Title: Re: [SOLVED] Dynamic DNS - Namecheap doesn't work but cloudflare does
Post by: AhnHEL on October 28, 2020, 02:28:44 AM
Yeah, I normally just write the subdomain under Host, omitting the TLD for an A+ Dynamic DNS Record.

crazysub.mydomain.com

Type                                                 Host                          Value                         TTL
A + Dynamic DNS Record              crazysub               www.xxx.yyy.zzz            Automatic


Glad you got it sorted