Skip to main content
mmtech
New Member
December 29, 2022
Solved

Google DDNS

  • December 29, 2022
  • 3 replies
  • 2395 views

I've created a stich and an action to send a POST which Google states it supports Google Support Doc

 

https://username:password@domains.google.com/nic/update?hostname=my.domain.com

 

Here is it is from the Config:

 

 

 

config system automation-action     edit "my.domain.com"         set action-type webhook         set minimum-interval 600         set protocol https         set uri "username:password@domains.google.com/nic/update?hostname=my.domain.com"         set port 443         config http-headers             edit 1                 set key "User Agent"                 set value "Chrome/41.0 email@domain.com"             next             edit 2                 set key "Authorization"                 set value "Basic base64-encoded-auth-string"             next             edit 3                 set key "Host"                 set value "domains.google.com"             next         end         set verify-host-cert disable     next end

 

 

 

Watching Debug off the console I see the following:

 

__action_webhook_status()-134: Failed to resolve address for: username:password@domains.google.com

__run_action()-298: Error when running service for stitch:Google DDNS action:my.domain.com.

__action_webhook_status()-134: Failed to resolve address for: username:password@domains.google.com

__run_action()-298: Error when running service for stitch:Google DDNS action:my.domain.com.

 

Thoughts?

Best answer by mmtech

Here is the CLI for the Action:

 

config system automation-action   

edit "Google DDNS"   

set action-type webhook   

set minimum-interval (Time is up to you)   

set protocol https   

set uri "domains.google.com/nic/update?hostname=my.domain.com"   

set port 443   

config http-headers   

edit 1   

set key "Authorization"   

set value "Basic base64-encoded-auth-string"   

next   

end   

next   

end

 

The Authorization Header will be your Username:Password converted to Base64

 

Thanks everyone.

3 replies

mmtech
mmtechAuthor
New Member
December 29, 2022

So you're using CURL to run this post command but don't support passing user:pass in front of the domain???

 

auto_curl_perform()-107: Curl perform error:22 - HTTP response code said error.
__action_webhook_status()-150: Failed to perform curl for url:https://domains.google.com/nic/update?hostname=my.domain.com.
__run_action()-298: Error when running service for stitch:Test action:my.domain.com.

 

mmtech
mmtechAuthor
New Member
December 29, 2022

Just so there is no confusion, out of Ubuntu

 

curl -X POST https://username:password@domains.google.com/nic/update?hostname=my.domain.com

Works just fine

mmtech
mmtechAuthorAnswer
New Member
January 5, 2023

Here is the CLI for the Action:

 

config system automation-action   

edit "Google DDNS"   

set action-type webhook   

set minimum-interval (Time is up to you)   

set protocol https   

set uri "domains.google.com/nic/update?hostname=my.domain.com"   

set port 443   

config http-headers   

edit 1   

set key "Authorization"   

set value "Basic base64-encoded-auth-string"   

next   

end   

next   

end

 

The Authorization Header will be your Username:Password converted to Base64

 

Thanks everyone.