Our goal is to replace our current DNS infrastructure with a dynamic split-horizon DNS. For that we need a bind module ( implemented like the DLZ is ) that wil will execute the following logic:
For the flow of the plugin please check the attached image.
The deliverable needs to be a patch that can be applied to the latest stable BIND ( 9.10.1 ) and that does not change the way bind works in any way or form except the specified scenario. The deliverable will be a plugin and not a patch to the way bind runs.
Proposed db:
domains:
id: int
domain: varchar
ns1: varchar
ns2: varchar
domain_class:
id: int
domain_id: FK to domains->id
ip_class: varchar ( of ip classes allowed: eg: [login to view URL] )
mappins:
id: int
domain_id: FK to domains->id
from: varchar ( eg [login to view URL] )
to: varchar ( eg [login to view URL], so when a request comes in and the ns for the domain will return [login to view URL], we will change that to [login to view URL] )