Linux DNS Multi tenant
- by spicyramen
I need to setup a multi-tenant DNS solution in Linux DNS Server. Currently I serve multiple companies:
Company ABC,
Company XYZ, etc...
I need to create
a) Forwarder zone
b) Reverse Forward Zone.
I can easily create a Forward Zone with domain abc.com
The challenge I have is that each of my customer components share the same IP address.
Hence If I create the Reverse Forward Zone I end up with something like this:
abc.com 1.1.1.1 host.abc.com
xyz.com 1.1.1.1 host.xyz.com
If I perform a reverse lookup on host.abc.com it works fine...but if I do a reverse lookup on 1.1.1.1 I get a load balance response of:
attempt: host.abc.com
attempt: host.xyz.com
attempt: host.abc.com
Any ideas?
I want to add logic to the DNS configuration to handle DNS reverse lookup based on source machine and respond with right hostname.
Workaround: Create multiple DNS but this is not scalable.