Top-level domain restrictions
Top-level domains (TLDs) restrict the domains under which users can create zones.
In the Domain Name System (DNS) the term TLD refers specifically to the set of domains that reside directly below the root, such as .com. In the Red Hat OpenStack Services on OpenShift (RHOSO) DNS service (designate), a TLD can be any valid domain.
Because TLDs define the set of allowed domains, the zone that a user creates must exist within one of the TLDs. If no TLDs have been created in the DNS service, then users can create any zone. TLDs do not have a policy that allows privileged users to create zones outside the allowed TLDs.
- Example
-
After creating the
.comTLD, if a user attempts to create a zone that is not contained within the.comTLD, the attempt fails.
$ openstack zone create --email admin@test.net test.net.
- Sample output
-
Invalid TLD
You can create, list, show, modify, and delete TLDs by using the OpenStack Client openstack tld commands.
Create top-level domains Copy linkLink copied!
Create top-level domains to restrict the domains under which users can create zones.
Before you begin Copy linkLink copied!
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Run the
openstack tld listcommand, and confirm that your TLD exists.- Example
$ openstack tld list --name com
List and show top-level domains Copy linkLink copied!
List all top-level domains or display properties for a specific TLD.
Before you begin Copy linkLink copied!
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
Procedure Copy linkLink copied!
Update top-level domain properties Copy linkLink copied!
Modify top-level domain properties such as name and description.
Before you begin Copy linkLink copied!
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Run the
openstack tld show <TLD_NAME_or_ID>command, and confirm that your modifications exist.
Delete top-level domains Copy linkLink copied!
You can delete a top-level domain from the DNS service as needed for changes in your networking requirements.
Before you begin Copy linkLink copied!
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Run the openstack
tld show <TLD_NAME_or_ID>command, and verify that the TLD has been removed.