I need help configuring DNS servers for a multi-homed EC2 instance running Windows 2016 server. This instance has 2 network interfaces attached to it, eth0 and eth1. I have setup routing policies to ensure that traffic destined to a cidr range egresses through eth1 and everything else goes out through eth0. Now I want this instance to join an AD domain, and make sure that traffic destined to the same Cidr range (mentioned earlier) uses AD domain controllers for DNS resolution, all other requests should use Amazon provided DNS server.
How can I accomplish this?
Do I need to run a local DNS server and use stub zones/conditional forwarders? Can’t I set desired DNS IP addresses in individual network adapter’s ipv4 properties?