I have a single CentOS server (amanda01) with three IP addresses on three different subnets.
eth0 = 10.0.2.0 subnet
eth0.vlan101 = 10.101.0.0 subnet
eth0.vlan107 = 10.107.0.0 subet
(As you can see each IP is on its own VLAN and each VLAN goes out the parent interface eth0)
My DNS server has three A records in it.
amanda01.domain.grp IN A 10.0.2.81
amanda01.domain.grp IN A 10.101.0.14
amanda01.domain.grp IN A 10.107.0.14
From a server that is on the 10.0.2.0 subnet, I ping the hostname
amanda01 and the DNS server responds with any of the three IPs listed above. This is clearly round-robin behavior.
My question is as follows:
How can I make the DNS server only respond with the subnet that the originating request came in on? ie: If the server I'm pinging from is on IP 10.0.2.11, I only want a response of 10.0.2.81.