Today I started installing a reverse proxy at $WORK. I choose to follow this way, and all my DNS data is stored in my CMDB. Once again, the solution came from #puppet ! You can embed some “pure” ruby code in ERB templates. And, yes, you can query your database !
dbh = DBI.connect("DBI:Mysql:yourbase:mysql.mycorp.com", "you", [...]