Azquelt
Azquelt

Reputation: 1495

Can I use a custom root domain for a bluemix CF application?

I want to use a bare domain with a bluemix CF app. (A bare domain is also known as a zone apex, usually the domain you bought with nothing on the front of it, e.g. "azquelt.co.uk")

The bluemix docs for configuring a custom domain say you must configure a CNAME record for the hostname that you want to associate with a bluemix application.

However, you cannot create a CNAME record for a bare domain (e.g. something like "azquelt.co.uk"). This is a limitation of DNS.

Is it possible to use a bare domain name with a bluemix application or is this not supported?

Upvotes: 0

Views: 218

Answers (1)

Alex da Silva
Alex da Silva

Reputation: 4590

Yes, you can use a bare domain name in Bluemix. Basically you have to set the A record for your bare domain to point to the Bluemix domain IP address for your region. To find the IP address simply ping the hostname corresponding your region. For example for US South region you should user 75.126.81.68:

$ ping secure.us-south.bluemix.net PING secure.us-south.bluemix.net (75.126.81.68): 56 data bytes

The link you mentioned has the hostnames for other Bluemix regions as well.

To configure your application:

1) Create a custom domain in Bluemix using your bare domain (for example azquelt.co.uk

2) In your Bluemix application add a new route and select this new custom domain for the route and leave the host field empty. In this case your application will be reachable in your bare domain.

Upvotes: 1

Related Questions