I have a wireguard vpn connection to access certain private services hosted on private ec2 instances. But I want to be able to use my default internet connection for remaining traffic and only route those certain domain names via the wireguard interface. From my knowledge this can only be done iptables rules. Can someone please help me with providing an example iptables rule defining outgoing traffic for a certain domain must be forwarding to a certain wireguard vpn interface and all other traffic must be routed through the default network interface.
Edit #1 Please mention any other tool that's better suited for my purpose.
Edit #2 Since the mentioned services are running on private instances and are only accessible through the domain names hitting the AWS application load balancer, I cannot make use of IPs here.