Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
mmtech
New Contributor II

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?

1 Solution
mmtech
New Contributor II

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.

View solution in original post

3 REPLIES 3
mmtech
New Contributor II

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
New Contributor II

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
New Contributor II

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.

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors