Feature request: LuaDNS support #84

Closed
opened 2025-11-20 04:19:58 -05:00 by saavagebueno · 10 comments
Owner

Originally created by @NotAUsername4Sure on GitHub (Dec 22, 2020).

Originally assigned to: @qdm12 on GitHub.

  1. What's the feature?
    Add support to update an LuaDNS IP address registration
  2. Extra information?
    It uses Rest API so it may be hard. "https://www.luadns.com/api.html"
Originally created by @NotAUsername4Sure on GitHub (Dec 22, 2020). Originally assigned to: @qdm12 on GitHub. 1. What's the feature? Add support to update an LuaDNS IP address registration 2. Extra information? It uses Rest API so it may be hard. "https://www.luadns.com/api.html" <!-- YOU CAN CHAT THERE EVENTUALLY: https://github.com/qdm12/ddns-updater/discussions -->
Author
Owner

@qdm12 commented on GitHub (Dec 23, 2020):

Thanks! Oh on the contrary a REST API is easier for me (as long as it's not super convoluted like Azure's DNS 👀). I'll get to it during the Christmas break.

@qdm12 commented on GitHub (Dec 23, 2020): Thanks! Oh on the contrary a REST API is easier for me (as long as it's not super convoluted like Azure's DNS 👀). I'll get to it during the Christmas break.
Author
Owner

@qdm12 commented on GitHub (Dec 26, 2020):

A few initial questions (I'm coding it now):

  1. Can you use a wildcard subdomain?
  2. Can you use subdomains?
  3. Can you use ipv6? Or is it limited to ipv4 addresses?

Thanks!

@qdm12 commented on GitHub (Dec 26, 2020): A few initial questions (I'm coding it now): 1. Can you use a wildcard subdomain? 2. Can you use subdomains? 3. Can you use ipv6? Or is it limited to ipv4 addresses? Thanks!
Author
Owner

@NotAUsername4Sure commented on GitHub (Dec 26, 2020):

A few initial questions (I'm coding it now):

  1. Can you use a wildcard subdomain?
  2. Can you use subdomains?
  3. Can you use ipv6? Or is it limited to ipv4 addresses?

Thanks!

  1. Yes
  2. Yes
  3. Yes

Also note that all these are included in the free package of the service. You are only limited on the number of the zones. It might help you develop faster. Thank you for taking the time to add this service, much appreciated !

@NotAUsername4Sure commented on GitHub (Dec 26, 2020): > A few initial questions (I'm coding it now): > > 1. Can you use a wildcard subdomain? > 2. Can you use subdomains? > 3. Can you use ipv6? Or is it limited to ipv4 addresses? > > Thanks! 1. Yes 2. Yes 3. Yes Also note that all these are included in the free package of the service. You are only limited on the number of the zones. It might help you develop faster. Thank you for taking the time to add this service, much appreciated !
Author
Owner

@qdm12 commented on GitHub (Dec 26, 2020):

Thanks! Out of laziness, can you please try it with the image qmcgaw/ddns-updater:luadns and using this readme, as well as that LuaDNS readme?

If it gets complicated debugging it I'll sign up etc and test it out myself 👍

@qdm12 commented on GitHub (Dec 26, 2020): Thanks! Out of laziness, can you please try it with the image `qmcgaw/ddns-updater:luadns` and using [this readme](https://github.com/qdm12/ddns-updater/tree/luadns), as well as [that LuaDNS readme](https://github.com/qdm12/ddns-updater/blob/luadns/docs/luadns.md)? If it gets complicated debugging it I'll sign up etc and test it out myself 👍
Author
Owner

@NotAUsername4Sure commented on GitHub (Dec 27, 2020):

I get the below error :
ERROR email "examplename@outlook.com" is not valid

https://github.com/qdm12/ddns-updater/blob/luadns/internal/settings/luadns.go#L49

@NotAUsername4Sure commented on GitHub (Dec 27, 2020): I get the below error : ERROR email "examplename@outlook.com" is not valid https://github.com/qdm12/ddns-updater/blob/luadns/internal/settings/luadns.go#L49
Author
Owner

@qdm12 commented on GitHub (Dec 27, 2020):

Hmm strange. If you don't mind, as I use this check in other places too, can you please send me an email to quentin.mcgaw@gmail.com using that email address so I can run it through my regular expression check to see why it fails? Thanks!

@qdm12 commented on GitHub (Dec 27, 2020): Hmm strange. If you don't mind, as I use this check in other places too, can you please send me an email to [quentin.mcgaw@gmail.com](mailto:quentin.mcgaw@gmail.com) using that email address so I can run it through my regular expression check to see why it fails? Thanks!
Author
Owner

@NotAUsername4Sure commented on GitHub (Dec 29, 2020):

The email error is now fixed.

Now i get the below when it tries to update the record :

ERROR cannot update record: Forbidden

I tried with different hosts. i.e. "*" "test" "". i get the same error. also tried with existing record and with non existing record.

Find below the logs :

host set to "*" without record on luadns

ddns-updater | 2020-12-29T13:43:07.039Z INFO Found single setting to update record
ddns-updater | 2020-12-29T13:43:07.701Z INFO Reading history from database: domain example.com host *
ddns-updater | 2020-12-29T13:43:07.701Z INFO http server: listening on 0.0.0.0:8000
ddns-updater | 2020-12-29T13:43:07.702Z INFO healthcheck server: listening on 127.0.0.1:9999
ddns-updater | 2020-12-29T13:43:07.702Z INFO backup: disabled
ddns-updater | 2020-12-29T13:43:08.500Z WARN lookup any.example.com on 10.10.10.1:53: no such host
ddns-updater | 2020-12-29T13:43:08.500Z INFO IPv4 address of any.example.com is and your IPv4 address is 29.41.77.18
ddns-updater | 2020-12-29T13:43:08.500Z INFO Updating record [domain: example.com | host: * | provider: luadns | ip: ipv4] to use 29.41.77.18
ddns-updater | 2020-12-29T13:43:09.429Z ERROR cannot update record: Forbidden

host set to "test" with record on luadns

ddns-updater | 2020-12-29T13:50:40.014Z INFO Found single setting to update record
ddns-updater | 2020-12-29T13:50:40.685Z INFO Reading history from database: domain example.com host test
ddns-updater | 2020-12-29T13:50:40.686Z INFO http server: listening on 0.0.0.0:8000
ddns-updater | 2020-12-29T13:50:40.686Z INFO backup: disabled
ddns-updater | 2020-12-29T13:50:40.686Z INFO healthcheck server: listening on 127.0.0.1:9999
ddns-updater | 2020-12-29T13:50:41.567Z INFO IPv4 address of test.example.com is 21.55.93.44 and your IPv4 address is 29.41.77.18
ddns-updater | 2020-12-29T13:50:41.567Z INFO Updating record [domain: example.com | host: test | provider: luadns | ip: ipv4] to use 29.41.77.18
ddns-updater | 2020-12-29T13:50:42.531Z ERROR cannot update record: Forbidden

@NotAUsername4Sure commented on GitHub (Dec 29, 2020): The email error is now fixed. Now i get the below when it tries to update the record : > ERROR cannot update record: Forbidden I tried with different hosts. i.e. "*" "test" "". i get the same error. also tried with existing record and with non existing record. Find below the logs : host set to "*" without record on luadns > ddns-updater | 2020-12-29T13:43:07.039Z INFO Found single setting to update record ddns-updater | 2020-12-29T13:43:07.701Z INFO Reading history from database: domain example.com host * ddns-updater | 2020-12-29T13:43:07.701Z INFO http server: listening on 0.0.0.0:8000 ddns-updater | 2020-12-29T13:43:07.702Z INFO healthcheck server: listening on 127.0.0.1:9999 ddns-updater | 2020-12-29T13:43:07.702Z INFO backup: disabled ddns-updater | 2020-12-29T13:43:08.500Z WARN lookup any.example.com on 10.10.10.1:53: no such host ddns-updater | 2020-12-29T13:43:08.500Z INFO IPv4 address of any.example.com is <nil> and your IPv4 address is 29.41.77.18 ddns-updater | 2020-12-29T13:43:08.500Z INFO Updating record [domain: example.com | host: * | provider: luadns | ip: ipv4] to use 29.41.77.18 ddns-updater | 2020-12-29T13:43:09.429Z ERROR cannot update record: Forbidden host set to "test" with record on luadns > ddns-updater | 2020-12-29T13:50:40.014Z INFO Found single setting to update record ddns-updater | 2020-12-29T13:50:40.685Z INFO Reading history from database: domain example.com host test ddns-updater | 2020-12-29T13:50:40.686Z INFO http server: listening on 0.0.0.0:8000 ddns-updater | 2020-12-29T13:50:40.686Z INFO backup: disabled ddns-updater | 2020-12-29T13:50:40.686Z INFO healthcheck server: listening on 127.0.0.1:9999 ddns-updater | 2020-12-29T13:50:41.567Z INFO IPv4 address of test.example.com is 21.55.93.44 and your IPv4 address is 29.41.77.18 ddns-updater | 2020-12-29T13:50:41.567Z INFO Updating record [domain: example.com | host: test | provider: luadns | ip: ipv4] to use 29.41.77.18 ddns-updater | 2020-12-29T13:50:42.531Z ERROR cannot update record: Forbidden
Author
Owner

@qdm12 commented on GitHub (Dec 29, 2020):

Thanks for testing again! I pushed some commits to parse the error message and so on.

I decided (finally duh) to sign up on luadns and tested it with a domain (by the way, quite amazing it's free!) and it's working for me. Can you try pulling and try again?

If it fails again, are you sure you enabled API access in your settings as described here?

Thanks!

@qdm12 commented on GitHub (Dec 29, 2020): Thanks for testing again! I pushed some commits to parse the error message and so on. I decided (finally duh) to sign up on luadns and tested it with a domain (by the way, quite amazing it's free!) and it's working for me. Can you try pulling and try again? If it fails again, are you sure you enabled API access in your settings as described [here](https://github.com/qdm12/ddns-updater/blob/luadns/docs/luadns.md#domain-setup)? Thanks!
Author
Owner

@NotAUsername4Sure commented on GitHub (Dec 30, 2020):

It is working !! Thank you very much for integrating this into your project !!

@NotAUsername4Sure commented on GitHub (Dec 30, 2020): It is working !! Thank you very much for integrating this into your project !!
Author
Owner

@qdm12 commented on GitHub (Dec 30, 2020):

It's now merged in the main Docker image. Enjoy 🎉

@qdm12 commented on GitHub (Dec 30, 2020): It's now merged in the main Docker image. Enjoy 🎉
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#84