Linux DNS Multi tenant

Posted by spicyramen on Super User See other posts from Super User or by spicyramen
Published on 2014-08-24T03:05:17Z Indexed on 2014/08/24 4:23 UTC
Read the original article Hit count: 645

Filed under:
|
|

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:

  1. attempt: host.abc.com
  2. attempt: host.xyz.com
  3. 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.

© Super User or respective owner

Related posts about linux

Related posts about networking