Your ping tests tell you that your routes are working fine. You don’t need to worry about the RV042G configuration as that seems to be configured perfectly.
Name resolution is in your DNS settings. On your DNS server in LAN1, you should create a new Forward lookup zone for the domain name for LAN2 and vise versa. Then add the DNS names you want to resolve in each domain.