With the raise of containers, Kuberenetes, 12 Factor etc, it has become easier to replicate an identical environment across dev, staging and production. However, what there appears to be no common standard to domain name conventions.
As far as I can see it, there are two ways of doing it:
- Use subdomains:
*.dev.foobar.tld
*.staging.foobar.tld
*.foobar.tld
- Use separate domains:
*.foobar-dev.tld
*.foobar-staging.tld
*.foobar.tld
I can see up and downs with both approaches, but I'm curious what the common praxis is.
As a side-note, Cloudflare will not issue you certificates for sub-sub domains (e.g. *.stage.foobar.tld
).
.test
domain (in addition toexample.com
). It is reserved for the purpose.*.loc
,*.dev
and*.tld
(and friends) are not reserved and cannot be hijacked by the developer. – jww Sep 20 '18 at 3:10