Ip address lookups.

it will be something like this:

add schedule rule with script like this

/interface pptp-client set pptp-out1 connect-to=[:resolve host.name.com]

[/code]