- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Google DDNS
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?
Solved! Go to Solution.
- Labels:
-
FortiGate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
