Add dynamic Public router adrress to walled garden problem

Hello,
I am having a dynamic address as my public router adress.
I have setup a dynamic domain name for my address ex. mydomain.dyndns.org.
My Problem is how to add this address to Walled garden in hotspot corectly?

I am trying to setup paypal with secure ssl page and Usermanager.
If i put in walled garden my dyndns adress (mydomain.dyndns.org) to allow,
I am having problems when the hotspot users want to access the ssl page:
https://mydomain.dyndns.org/user

Sometimes they cannot acces the ssl page and get an error message : site is unavailable,
but then they click on refresh and then the page loads.

If i put in walled garden instead of domain address (mydomain.dyndns.org), the real address (ex. 78.40.131.2) then the page ssl loads without problems.
But this real address (78.40.131.2) is changing each time i restart my dsl router.

So which entry should i input in Walled garden?
Seems that walled garden doesnt work well if i put the domain name address.

Thank you for help

I would recommend to use resolve script,
http://wiki.mikrotik.com/wiki/Manual:Scripting-examples#Resolve_host-name
that updates name often.

The problem is that walled-garden creates entry based on DNS address, which is changed time by time.

but this script is for radius server.

How do i make a script that will change my Dynamic IP entry, which is in the Walled garden?
Edit:

Ok i finally managed to recreate the script and make it to change my IP entry in walled garden.
Here is how i did it if somebody else needs it:

/system script add name="gardenip" source= {

:local resolvedIP [:resolve "mydomain.dyndns.org"];
:local gardenID [/ip hotspot walled-garden ip find comment="PublicIP"];
:local currentIP [/ip hotspot walled-garden ip get $gardenID dst-address];

:if ($resolvedIP != $currentIP) do={
   /ip hotspot walled-garden ip set $gardenID dst-address=$resolvedIP;
   /log info "garden ip updated";
}

}