how to configure dns redirect to router's local server right in vlan interface?

It should work the way you intend. What does /interface list member export show?