My domain provider's config tool doesn't seem to support what I'm trying to do and I'm unsure of the proper BIND syntax for the below - any pointers appreciated!
I've got separate physical production servers and staging servers and I'd like domain.org to point to production, and staging.domain.org to point to the staging server + have m/www/api prefixes for each server.
Here's what I think I need in my zone file for domain.org:
@ 10800 IN A $production-IP
staging 10800 IN A $staging-IP
api 10800 IN CNAME domain.org
api 10800 IN CNAME staging.domain.org.
m 10800 IN CNAME domain.org.
m 10800 IN CNAME staging.domain.org.
www 10800 IN CNAME domain.org.
www 10800 IN CNAME staging.domain.org.
But I wonder if that's still ambiguous for BIND or if these are just a bunch of duplicate records?
Thanks!