I want to configure bind/write driver that resolves DNS requests based on the ip address of the client.
We want to unify the domain names of all test environments for our web application.
Instead of having many domains like test.mysite.com
, qa.mysite.com
, etc for different staging environments we want only to have www.mysite.com
and make it configurable which test environment it "points" to.
To accomplish this I am thinking of providing web interface for configuring which test environment has to be used. DNS requests than should be answered based on this configuration.
Do you think something like this is doable with bind or other dns server? And how does it compare to writing client application that modifies the local hosts file?