If the VPN mode is global, or if the LAN client (A) is included in VPN rule with policy mode, the client (A) DNS will also go the VPN interface after the DNS request passes through ADG.
Vice versa, like if the client (B) is not included the VPN rule, so its will go to WAN, then DNS passes through ADG and goes to WAN interface.