Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Hostname Format #17

Open
ghost opened this issue Aug 23, 2021 · 8 comments
Open

Invalid Hostname Format #17

ghost opened this issue Aug 23, 2021 · 8 comments
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Aug 23, 2021

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?

@mrikirill
Copy link
Owner

It seems to be some sort of limitation in DSM for inputs length. You can directly put all your domains into the script to avoid DMS limit. You can modify this line:

$hostnames = (string) $argv[3]; // example: example.com.uk---sundomain.example1.com---example2.com

to put something like this:

$hostnames = "domain1.com---domain2.com---domain3.com---domain4.com";

@webwude
Copy link

webwude commented Aug 24, 2021

Another workaround / option is to add another cloudflare entry (as DSM just allows one DDNS entry):

`[Cloudflare2]

modulepath=/usr/syno/bin/ddns/cloudflare.php

queryurl=https://www.cloudflare.com/`

Then you have another 128 characters.

@ghost
Copy link
Author

ghost commented Aug 24, 2021

Thank you both for your time. I'll give these a shot and report back.

@ghost
Copy link
Author

ghost commented Aug 25, 2021

I added the subdomains to the script but nothing changed. The second workaround of adding a second entry to the dns provider config did not work. When I tried the test connection I got an "Unable to perform operation".

@webwude
Copy link

webwude commented Aug 26, 2021

I added the subdomains to the script but nothing changed. The second workaround of adding a second entry to the dns provider config did not work. When I tried the test connection I got an "Unable to perform operation".

Does the initial entry work? I just checked - both connections, Cloudflare and Cloudfare2 are working fine here.

@ghost
Copy link
Author

ghost commented Aug 26, 2021

The first entry worked with 9 subdomains but the second entry with 8 subdomains gave me the error.

@webwude
Copy link

webwude commented Sep 7, 2021

The first entry worked with 9 subdomains but the second entry with 8 subdomains gave me the error.

How about just trying the second one with one entry to see if this works and then extend it step by step? It works here...

@mrikirill mrikirill added the question Further information is requested label Sep 15, 2021
@webwude
Copy link

webwude commented Nov 5, 2021

Just FYI. I installed an 7.01 update - and afterwards both php and the entries were gone - I had to reenable everything. Now it works again, with both entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants