Setting DNS A Records and Second-Level Domain Names in Jelastic
If you have taken advantage of, or plan to, using a public IP within Jelastic, it is really easy to setup your DNS Records (A and second-level) for your application/s. To show you how easy it is, we’ve done quick how-to.
Notice: having a public IP is a paid add-on.
If you don’t know what A Records and second-level domains are, here’s a quick primer.
The A Record (host record or a DNS host) gives you the IP address of a domain. Now you can control the host record for your domains, so you can set an A Record to point your domains and host names to your Public IP address.
A second-level domain (SLD) is the portion of URL that identifies the specific and unique administrative owner associated with IP address. In other words it is the segment of the domain name that is located on the left of the final dot. For example, in jelastic.com “jelastic” is a second-level domain. You can use more than one second-level domain name for the same IP address.
Let’s begin now!
1. Go to jelastic.com and sign up if you haven’t done it yet or log in with your Jelastic credentials by clicking the Sign In link on the page.
2. Ask Jelastic to create a new environment.
3. Choose the instances you want to use (for example, Tomcat application server), set the cloudlets limit and switch on external IP. Then type the name of environment and click Create.
In a minute the environment will be created.
4. Expand the list of environment and use Additionally button for your instance to see the number of your Public IP.
Domain name and A Record settings
1. Using any domain registrar (as the example we use GoDaddy) buy domain name, for example, mycustomsite.com.
2. Log in to your Account manager by clicking My Account button and filling in your credentials.
3. Click Launch next to Domains.
4. In the opened window select DNS Manager from the Tools menu.
5. Then click Edit Zone for the domain name you want to update.
6. In the opened Zone File Editor click Add Record.
7. The Add DNS Record window displays.
From the Record type list select A (Host).
Complete the following fields:
- Host Name – Enter the host name the A record links to. Type @ to point the record directly to your domain name.
- Points to IP Address – Enter the IP address (the one you’ve got after creating environment) your domain name uses for this host record.
- TTL – Select how long the server should cache the information.
8. Click Save Zone File.
9. Then click OK to confirm.
9. After that the new A record displays in the A (Host) section.
That’s all! Now open your browser, enter your domain name (in our case mycustomsite.com) and you’ll see the home page of your instance (in our case Tomcat home page) but with your domain name in the address bar.