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

Issues using UDMSE 2.4.10 #13

Closed
nathanlbell opened this issue Jun 12, 2022 · 3 comments
Closed

Issues using UDMSE 2.4.10 #13

nathanlbell opened this issue Jun 12, 2022 · 3 comments

Comments

@nathanlbell
Copy link

I am leveraging the index.js script which is reporting no hostname when the script is being sent to a cloudflareworker. Getting the following:

You must specify a hostname
inadyn[13240]: Fatal error in DDNS server response:
inadyn[13240]: [400 Bad Request] You must specify a hostname
inadyn[13240]: Error response from DDNS server, exiting!
inadyn[13240]: Error code 48: DDNS server response not OK

Command being sent from debug:

inadyn[13240]: Sending alias table update to DDNS server: GET /update?ip=47.185.98.12&hostname= HTTP/1.0
Host: dyndns.cowtownbells.workers.dev

Here is the snippit from the config:

iface = eth8

custom dyndns.cowtownbells.workers.dev:1 {
hostname = "ha.cowtownbells.com"
username = "cowtownbells.com"
password = ""
ddns-server = "dyndns.cowtownbells.workers.dev"
ddns-path = "/update?ip=%i&hostname="
}

@nathanlbell
Copy link
Author

nathanlbell commented Jun 12, 2022

I am running UniFi Network 7.1.66

@nathanlbell
Copy link
Author

I think I have this fixed, for one reason or another running inadyn on this version requires %h for hostname to be passed as a variable now. I leveraged the documentation

on https://github.com/troglobit/inadyn

This emulates dyndns.org

custom dyn {
username = DYNUSERNAME
password = DYNPASSWORD
ddns-server = members.dyndns.org
ddns-path = "/nic/update?hostname=%h.dyndns.org&myip=%i"
hostname = { YOURHOST, alias }
}

@nathanlbell
Copy link
Author

@willswire in case you did or didn't know this, this version of inadyn seems to require %h hostname variable on custom configs. I use this in the ddns-path and it is updating normally now.

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

No branches or pull requests

1 participant