Re: Issue on nested shared domains


Tomoe Sugihara
 

Hi Carlo,

Can you try using Private Domains[1]? IIRC, that should allow what you
were trying to do.

[1]: https://docs.cloudfoundry.org/devguide/deploy-apps/routes-domains.html#private-domains

Thanks,
Tomoe

On Tue, Jul 19, 2016 at 1:15 PM, Carlo Alberto Ferraris
<carlo.ferraris(a)rakuten.com> wrote:
Due to internal regulations our users need to deploy apps on two wildcard domains, where the second is the a subdomain of the first one, e.g.:
- *.A.com
- *.B.A.com

We registered both as shared domains and they work fine, but we have run now into a surprising behavior. Turns out it's not allowed to register route B.A.com:

$ cf create-route my-space A.com --hostname B
Creating route B.A.com for org my-org / space my-space as my-user...
FAILED
Server error, status code: 400, error code: 210001, message: The route is invalid: host domain_conflict

I agree that using nested shared domains may not be the best of designs, but is the above behavior expected? At the DNS level this is allowed, and I don't really see a reason why it shouldn't be allowed in CF...

Carlo

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.