Coder Social home page Coder Social logo

mrikirill / synologyddnscloudflaremultidomain Goto Github PK

View Code? Open in Web Editor NEW
393.0 15.0 56.0 1.24 MB

Synology DDNS Cloudflare service provider with multidomains and subdomains

Home Page: https://mrikirill.github.io/SynologyDDNSCloudflareMultidomain/

License: MIT License

PHP 100.00%
synology ddns ddns-updater cloudflare cloudflare-ddns dms multidomain subdomain

synologyddnscloudflaremultidomain's People

Contributors

iceman201 avatar mrikirill avatar rfuehrer avatar sdhawade avatar smoetje avatar twcau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

synologyddnscloudflaremultidomain's Issues

Unable to access my NAS without a VPN or proxy

I followed the instructions to set this up. I was unable to access my NAS using local wifi. But when I turned on a VPN app or use 4G on my phone, it's accessible. This was strange. Can anyone help me, please?

Service provider not updating with new Cloudflare value

When finised editing the ddns_provider.conf file I confirm the entrie has saved.

I then check the Service provider dropdown and its not showing.
Rebooted the device, confirmed the new Cloudeflare is still in the conf file and its still not showing.

Suggestion for an automatic installer in Python

Hello,

I came across someone who made a nice automatic installer, very easy to use, made in Python. A very simple cron job is set up and it runs the script at every boot-up. It thus makes sure it is always working, even after a DSM update (theoretically).

The original script is there: https://github.com/namukcom/SynologyCloudFlareDDNS/blob/master/setddns.py
I made a variant of it there: https://github.com/aleclerc7/SynologyCloudflareDDNS/blob/master/CloudflareSynologyDDNSProvider.py

Maybe adding such a script could make the life easier for many. One can just make a fork and make the necessary path change if he wants to be in control of what is downloaded to his Synology DSM. Then, it just works, even after an upgrade of DSM.

Kind regards.

Unknown error while update IP adress

I have set up the lastest version of SynologyDDNSCloudflareMultidomain on my Synology, but when i configure the DDNS, the DSM reports unknow error.

I have tired the debug command, and it gives the following error:

Catchable fatal error: Argument 2 passed to updateCFDDNS::setRecord() must be an instance of string, null given, called in /usr/syno/bin/ddns/cloudflare.php on line 85 and defined in /usr/syno/bin/ddns/cloudflare.php on line 226

Synology DMS DDNS list isn't updated

I updated the DDNS config file following the instructions, downloaded the "cloudfare.php" file to the correct place and even ran the debug command through SSH, but Cloudfare still wouldn't show up in my list. I tried changing the name of Google just to test it, but it didn't update either.

SSL certificate is not valid

Hey I got everything up and running and can also access the website under the domain. I have now also added an SSL certificate in Synology DSM. The SSL certificate authorizes my domain and all subdomains. However, when I try to access the page from a subdomain, it is considered as not secure. The error message "Not Valid" appears. Do you know what could be the reason?

I activated the "Strict" SSL mode in Cloudflare and turned off the proxy for the DNS entry.

Thank you for your help.

IPv6 Support

What about implement IPv6 support in script?

Regards.

Character limit

Hi there,

Is there any way to increase the 128 character limit on domain names?

I host multiple sites, so would like to be able to include all.

Thanks!

Unknown error updating Cloudflare

Getting the following error once in a few days or sometimes multiple times a day. :
System failed to register the external IP address XX.XXX.XXX.XXX to domain.name in DDNS server Cloudflare. The reported reason is [Unknown Error].
Any pointers to finding out the error code would be useful

Unable to update wildcard domain

I use '' in my cloudflare DNS to allow access to any ABC.mydomain.com instead of having to define each ABC name in the DNS.
Synology doesnt seem to accept the character '
' in the hostname field when configuring the connection. Is there a way around this?

Thanks!

How can i use 2 diffrents domaine ?

Hi,

Can i use the same api of my domaine 1 and add the second domaine to the hosts on nas ?

Is that possible ? or should i create 2 differents api

Than you

Run by command line / shell

Hi.

I realized that from time to time that the update / process hangs. I have two domain lists updating on a regular basis. If one of them times out or has another issue, it just stops for all ddns entries, including Synology.me.

Is there a way to initiate the update via shell using the existing values? I would just add two tasks to the task planer executing the script if possible

Attempting to update IP fails with status: "Synology Technical Support.">Failed."

After updating to DSM 7.1.1-42962 Update 5, and going through the reinstallation process for cloudflare.php etc, attempting to update the DDNS IP address now throws an error that I've never seen before: Synology Technical Support.">Failed.

I'm assuming something has changed with Update 5. Running the debug command throws an invalid ip-address error, and Cloudflare is not contacted according to the audit logs.

Please let me know what other things I can provide to help fix this new issue!

SCR-20230418-hsj

IPv6 Support

Will this script have IPv6 support in the future?

How to edit other DNS record

Hi, i would like to update all my DNS records... and not only the default hostaname.

How to update also FTP, SSH, mail, www etc...?

Avoid 128 chars limitation

I'm facing with chars limitations of 128 symbols... any way to avoid it? I can only add one DDNS for a single provider.

I have lots of domains to update ๐Ÿ˜ญ

At the moment I edited directly the cloudflare.php file to hard encode the long string. Just as fast fix.

Wildcard DNS record

How can I add wildcard (*.domain.com) DNS record?
DSM hostname string does not accept asterisk operator *.

image

Does not update DNS records on Cloudflare

I have domain .ML
It seems, that something is wrond, because Update Status in DDNS settings of Synology is Normal , but this status shows also if I try to put wrong credentials.

Do you know, where could be the issue?

Invalid Hostname Format

mrikirill,

I've installed the script and created an api token on cloudflare, all subdomains are created on cloudflare. When I try to add the ddns provider on my synology, I can add 9 suddomains on the add ddns page but when I add another subdomain it says I have an invalid hostname. Is there a limit of subdomains?

Project has no license

Hi @mrikirill ,

I noticed that the project does not include a license statement, so legally it is not actually open source. Is this intentional or would you rather have provided a free license such as MIT?

For this, the following notes from Github (https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository#what-happens-if-i-dont-choose-a-license):

You're under no obligation to choose a license. It's your right not to include one with your code or project, but please be aware of the implications. Generally speaking, the absence of a license means that the default copyright laws apply. This means that you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work. This might not be what you intend.

Even if this is what you intend, if you publish your source code in a public repository on GitHub, you have accepted the Terms of Service which do allow other GitHub users some rights. Specifically, you allow others to view and fork your repository.

if you want to share your work with others, we strongly encourage you to include an open source license.

Are you okay with me bringing in a PR with MIT?

error 521 web server is down

i updated dsm and reinstalled the script but im getting the above. ive checkd everything via clouflare and the ddns says the status is normal in green.

FYI CloudFlare API free domain limitation

Not exactly an issue but I wanted to pass this along for any poor soul who spent countless hours trying to get this to work only to find out there is a CloudFlare API limitation with free domains.

I was testing this out with a free .ml domain to no avail. I tried curling the API myself only to find this response.

{
  "result": null,
  "success": false,
  "errors": [
    {
      "code": 1038,
      "message": "You cannot use this API for domains with a .cf, .ga, .gq, .ml, or .tk TLD (top-level domain). To configure the DNS settings for this domain, use the Cloudflare Dashboard."
    }
  ],
  "messages": []
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.