If you are using OpenShift Online Starter you cannot use a custom domain name when creating a route for an application. A custom domain name is supported when using OpenShift Online Pro.
For further information on the differences between OpenShift Online Starter and Pro environments see the plans and pricing page for OpenShift Online.