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

new REST api port and curl feature #51

Open
OkenKhuman opened this issue Jul 6, 2020 · 2 comments
Open

new REST api port and curl feature #51

OkenKhuman opened this issue Jul 6, 2020 · 2 comments

Comments

@OkenKhuman
Copy link

I tried this server running on a droplet and with this command

http://<mydomain>:8080/update?secret=hellotest&domain=node1

on my local machine's browser it returns

{"Success":true,"Message":"Updated A record for node1 to IP address 157.40.255.20","Domain":"node1","Domains":["node1"],"Address":"157.40.255.20","AddrType":"A"}

but by using curl on another droplet it returns

{"Success":false,"Message":"Domain not set","Domain":"","Domains":[""],"Address":"","AddrType":""}

what could be the problem?

and also please guide me on how to change the default port 8080 to something like 9010 if possibe.

@dstapp
Copy link
Owner

dstapp commented Jul 6, 2020

Hey, did you put the url in quotes using curl? Seems like domain is not part of the query string which is normal if you don‘t quote it because & is used to detach processes in bash :) port can be changed directly as a docker port mapping.

@OkenKhuman
Copy link
Author

OkenKhuman commented Jul 7, 2020

Yes I quote it... it works when I curl from my local machine but not from another Droplet.
I Even forcely done by mentioning my droplet ip but I am not able resolve the dns.

I just want to setup a droplet based ddns server that provide ddns to other droplets.

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

2 participants