rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: chaoshaowei on May 26, 2020, 01:38:50 PM

Title: Dynamic DNS Updater with HTTPS
Post by: chaoshaowei on May 26, 2020, 01:38:50 PM
Hi, I'm new to here.

I wanted to update my IP to a domain I own under Google Domain. The URL for updating is:

https:// user:pass@domains.google.com/nic/update?hostname=subdomain.yourdomain.com&myip=1.2.3.4

Because Google doesn't accept HTTP connections, so I can't just take away https:// and update.
Is there a way to update DNS? Or is there a way to redirect http to https?

Please let me know!!
Title: Re: Dynamic DNS Updater with HTTPS
Post by: rejetto on May 26, 2020, 02:52:34 PM
welcome to the forum!
sorry but https is not supported yet,
you'll have to use a different tool.

Or if you are a php programmer you may easily put a single line script on some server of yours that respond to simple http, proxying to google.
Title: Re: Dynamic DNS Updater with HTTPS
Post by: rejetto on May 26, 2020, 04:16:22 PM
thanks for letting me know of this feature from google, anyway.
now i'm using it through the updater in my modem. :)
Title: Re: Dynamic DNS Updater with HTTPS
Post by: Mars on May 27, 2020, 01:12:21 AM
it seems possible to use a powershell script to perform this dns update

https://port1433.com/2017/02/20/updating-google-domains-dynamic-dns-with-powershell/

Title: Re: Dynamic DNS Updater with HTTPS
Post by: rejetto on May 27, 2020, 10:28:26 AM
thanks mars! maybe someone will be able to make a small plugin for easier integration on hfs
Title: Re: Dynamic DNS Updater with HTTPS
Post by: Rapid on May 27, 2020, 03:32:01 PM
Hi Rejetto!

I think it's easier to add https support: https://github.com/drapid/HFS/blob/55d2bb27b06d7e5fa832ec397b63f8761edb5888/utillib.pas#L1806
Of course you need to copy openssl libs to use it...
Title: Re: Dynamic DNS Updater with HTTPS
Post by: rejetto on May 27, 2020, 04:11:14 PM
cool, thanks, i suspected that and it may be in time for 2.4
i'll give a look asap