anchor.diff:  	$ cf map-route myapp example.org -n app
   	</pre>
   
  -## <a id='parent'></a>Using a Parent Domain ##
  +## <a id='parent'></a>Creating a Parent Domain ##
   
   In the multi-level domain "myapp.<%=vars.app_domain%>," "<%=vars.app_domain%>" is the parent domain of subdomain “myapp.”
   
  
positive.code: When you run `cf push`, you can optionally assign a domain and host to the application.
  
  - **Domain**: Use the `-d` flag to specify one of the domains available to the targeted org.
  - **Subdomain**: Use the `-n` flag to provide a string for the host.
  
  The route Cloud Foundry creates for the application as a result of the following command is `myapp.example.org`.
  
  
negative.code: ---
  _This page assumes you are using cf CLI v6._
  
  This topic describes how to create and use domains and routes in Cloud Foundry.
  
  <p class="note"><strong>Note</strong>: The term <strong>domain</strong> in this topic differs from its common use and is specific to Cloud Foundry.</p>
  
  In Cloud Foundry, you create a domain according to the guidelines in this topic. Cloud Foundry uses these domains in routes to direct requests to applications. A **custom domain** refers to a third party registered domain that you own and can use with your applications in Cloud Foundry. <%=vars.domains_shared_domains%>
  
  Domains are associated with orgs and are not directly bound to applications. Domains can be **shared** or **private**. Shared domains are registered to multiple orgs while private domains, or **owned** domains, are registered to one org. A Cloud Foundry instance defines a default shared domain that your application uses unless you specify a different domain.
  
  A **route** is a path used to access an application online. Each route is directly bound to one or more applications in Cloud Foundry. A route is a URL composed of a domain and an optional host as a prefix. For example, "myappname" is the host and "<%=vars.app_domain%>" is the domain in the route "myappname.<%=vars.app_domain%>." Here "<%=vars.app_domain%>" could either be a custom domain of your own, or a domain that you have created through Cloud Foundry.
  
  ## <a id='root'></a>Using a Root Domain ##
  
  A **root domain** or a **zone apex domain** such as "example.com" consists of a domain without a host. To access an application deployed to a root domain, you must use either custom record types or **subdomain redirection**.
  
  The following section contains instructions for mapping a root domain to your application by configuring ALIAS or ANAME custom record types or by using subdomain redirection.
  
  