confused over using resolved dynamic addresses in interfaces

Not the subject line makes any sense but here’s my confusion.

Say you are wanting to add a connection client (be that pptp, l2tp whatever) , the line would go something like this;

/interface pptp-client add connect-to=1.2.3.4 blah blah

But now that address is really a dynamic address. So 24hrs later it changes.

I know how to resolve an address ([:resolve myname.dynamic.dns.net]) and even add it to an address list but for the life of brian, I’m not sure how I would use this resolved address when connecting the interface client again.

In other words, where do I reference the resolved address in the part “connect-to=”?

Hope I’ve made some sense.

http://forum.mikrotik.com/t/vpn-with-ddns/20782/2

Changeip, thanks very much. Seems I need to work on my scripting.