Cpanel
- Login to cPanel: To get into your cPanel interface you have to open your web browser and enter login details supplied to you by your web host.
- Locate Subdomains: After day and registering for an account, go to Domain manager or try using a search bar in the page to look for Subdomains.
- Create Subdomain: To proceed with the subdomain manipulation click on the 'Subdomains' button. On the Subdomains page, there would be a form which users may fill to create a new subdomain.
- Enter Details: In case of "Subdomain," put an asterisk (*) symbol in the text box designated for this parameter. This symbol is used to make a field or column to allow searching of any character. For instance, if your domain is 'example.' com", enter ". example. com".
- Choose Document Root: The "Document Root" field is optional and will be filled by the site builder tool. This designates the directory where files that correspond to the wildcard subdomain will be located. This determines the directory where files for the wildcard subdomain are placed. Designate the folder in which to save files as the default, or select a different one if necessary.
- Create Subdomain: To create the wildcard subdomain you would click on the Create button like I have highlighted below.
- Confirmation: Once they are created, the admin will receive a confirmation message on the screen that a wildcard subdomain has been added.
CloudFlare
- Login to Cloudflare: Visit the Cloudflare website and log in with your credentials.
- Select Domain: If you own several domains, choose the one for creating a subdomain from the dashboard.
- Navigate to DNS Settings: After getting on the domain dashboard, find the option labelled "DNS". This is where you manage DNS records for your domain,:
- Add DNS Record: In the DNS Records section, you will see the Add Record button located at the bottom of the page.
- Enter Details: In the "Name" field, you must provide a specific company subdomain name. For instance, let us consider an example of creating a "sub." example. To do this, simply press "tab" to go to the next field, and enter "sub" in the Name field.
- Select Type: Select the record type depending on the complexity of the inquiry and the amount of data you want to obtain. For any standard subdomain choose 'A' if it is an IP version 4 address or 'CNAME' if it is an alias.
- Enter Value: In the "IPv4 Address" or "Value" field, you need to input the IP address of the server to which the subdomain will direct. In case of using a CNAME record, specify the hostname of the target server.
- Toggle Proxy Status (Optional): To proxy traffic through Cloudflare, switch proxy status to the 'Proxied' state. This comes in handy to conceal your origin server IP address.
- Save Record: When you are done, click on the "Save" button to provide the DNS record of the subdomain.
- Verification: Once entered, Cloudflare will show a success message saying that the selected DNS record has been added successfully. Sometimes it may take several days before the changes reflected on the website go viral on the internet
- Test Subdomain: It is now possible to put the subdomain to the test by simply typing its address in the address bar of any web browser and checking whether it directs the connection to the right place.
Reference
What are Wildcard Subdomains? How to Create a Wildcard Subdomains?
Top comments (0)