How can I hijack a DNS entry for an domain name on Linux (Ubuntu 12.04)? I am interested in creating a DNS CNAME alias for domain1.com to domain2.test.com.
The problem is the applications uses 5 domains that point to 5 different DB instances and I want them all to point to the same DB instance. I don't want to rely on /etc/hosts because the IP can change.
I tried using a DNS server for this, but it seems to be overkill in this case and introduces too much complexity to the project.