:local wanp [/ip address get [/ip address find where interface=wan] address];
:local resultLen [:len $wanp]
:local startLoc [:find $wanp “” -1]
:set startLoc ($startLoc )
:local endLoc [:find $wanp “/” -1]
:global pip [:pick $wanp $startLoc $endLoc]
/ip dns static
remove [/ip dns static find name=www.webfig.pp]
add address=$pip disabled=no name=www.webfig.pp
