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

No need to scrape the page, just use the DDNS API #1

Open
norbu09 opened this Issue Jun 14, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@norbu09
Copy link

norbu09 commented Jun 14, 2016

I've made a few changes to the DDNS API recently that should make this process way simpler (one HTTP call).

The basics are lined out here: https://iwantmyname.com/developer/domain-dns-api

I have added the parameters type and value to enable adding TXT records for letsencrypt validation so something like this should work:

curl -u "[username]:[password]" \
          "https://iwantmyname.com/basicauth/ddns?hostname=[hostname]&type=TXT&value=[secret]"

If you have issues with this please get in touch, would be keen to promote your script on our page.

@hughdavenport

This comment has been minimized.

Copy link
Owner

hughdavenport commented Jun 23, 2016

Ah cool, I saw that before, but didn't have the type and value. I'll give that a test and see what happens. Would be good to get away from manual scraping! Accidentally removed all the entries for a domain because didn't do the get to dns/list/ before the dns/add during first testing lol.

I'll make another issue for having 2factor auth turned on which someone mentioned to me irl. Might have to nut that one out with you irl sometime.

Cheers,

Hugh

@hughdavenport

This comment has been minimized.

Copy link
Owner

hughdavenport commented Jun 23, 2016

That didn't work for me, added an A record with my IP, for that hostname.

Also, username is an email with a "@" character in it. I thought that was "special" in terms of a URL for basic auth? Maybe just in the password?

Otherwise I've pushed this to the api branch, commit 3ad1cfb

Cheers,

Hugh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment