In our environment we have a very uniq requirement. Let me explain you our environment first.
We have DEV,TEST,PRE-PROD & PROD environment, and every environment has its own DNS server ( Primary and slave ) to resolve the hostnames.
What we want now is create one mamangement server , who will be able to resolve all environment servers (DEV,TEST,PRE_PROD) except PRODUCTION environment.
So I thought, putting all environments DNS servers IP address in this management servers resolv.conf will resolve the issue. BUT it is just resolving servers hostname whose entry is registered with first DNS server type. For e.g , I have mentioned DEV environments DNS server, so it resolved only DEV servers . When I try to resolv other environment servers like PRE-PROD or TEST, they didn't resolv.
I read multiple blogs and post and general consensus is that resolver just check first entry and in case of time out or SERVFAIL then only it goes to second name server from resolv.conf.
I would like to take your opinion/suggestion on how do i achieve this requirement.
Note:- We are using RHEL 6 equivalent.
Thanks