DNS Setup on GoDaddy.Com

Why this specific configuration?

JavaScript is a useful tool, but unfortunately it has its limitations. The same-origin policy prevents JavaScript from one domain from using any resource from another domain. We show you a method of sidestepping this problem with some simple, specific DNS configuration settings, outlined in this document.

When this configuration has been done, including subdomains for both your hosting server/account and rdbhost's server, you can write JavaScript on your server that accesses your RdbHost account directly from the browser.

Logging in:

For this tutorial, we have chosen the most popular domain registration service around today, GoDaddy. Most domain registrars will have DNS managers that resemble this one.

We assume that you have previously purchased a domain at godaddy, and have not configured offsite nameservers for it.

First, log into your account with your username and password, and then locate the “My Account” tab:

My Account tab on GoDaddy

This will display a series of tables, one being Domains. Inside this table, you should find the domain you wish to configure for RdbHost. Beneath it, click View in Domain Manager:

'Domain Manager' Link on GoDaddy 'My Account' page

Selecting your domain and using the manager:

The domain manager is a simple, tabbed web page that should have all domains you have registered to your account displayed within it:

DNS Manager page on GoDaddy

There is no need to select anything or make any changes to this page. Simply locate the Tools tab above, and select DNS Manager:

DNS Manager link under tools on GoDaddy

A new page will load, displaying your domains once more. Locate the domain you are configuring for RdbHost, and then click Edit Zone beneath it:

'Edit Zone' link on GoDaddy's domain manager

A (host) record configuration:

The next page to load is the Zone File Editor. This contains several sets of records with somewhat obscure names such as “A” and “CNAME”. These are not nearly as complex as they look though. For our purposes, we only need to worry about A (Host).

There will likely already be one record, labeled as “@”. This handles addressing the domain as (‘http://noservercoding.com’) with no subdomain in front. Subdomains now must be added for ‘www’, and ‘rdbhost’. ┬áSimply locate the Quick Add button below the records, and click it.

'Quick Add' button on Zone File Editor

Once this button is clicked, a new record row will appear, with empty fields for Host, Points to, and TTL. The important ones are Host and Points to. The first information you want to add here is the subdomain, which points back to our server here at RdbHost. We strongly recommend naming this subdomain as “rdbhost”, which we point back to this server at 208.78.103.48. This is the IP address for the RdbHost server with your database, as stated on your profile page.

Adding the rdbhost subdomain

Once this is completed, the second domain we want to add points at the hosting account or server where our static files (html and JavaScript) are hosted. This IP address will have been provided to you by the hosting firm upon sign up completion. In the case of this example, we are pointing this at a hosting account setup for the www.noservercoding.com site. We are pointing the ‘www’ subdomain at 208.94.116.148 as that is the IP of the hosting account.

Adding 'www' sudomain

Once all four of these fields are filled, we click Save Zone File, which will apply this information.

'Save Zone File' button

Upon clicking save, a confirmation window should appear notifying you that your new information was successfully saved.

Save success notification

Testing your Settings:

It’s important to note that any DNS changes can take up to forty eight (48) hours to propagate throughout the internet. This means that while your tests may work moments after applying them, they may not work for someone in another region for up to that length of time.

After giving it two or three hours to propagate to nearby servers, there are two aspects to test, and doing so is simple.

To test the database server (‘http://rdbhost.noservercoding.com’, where noservercoding.com is your chosen domain name), simply try accessing this address. If it loads successfully, then this subdomain was added properly.

To test the primary host address (‘http://www.noservercoding.com’, where noservercoding.com is your chosen domain name), try accessing your index.html or index.php file on your primary host account. If they properly display, this too was configured correctly.

In the event they do not load properly, first try giving it the proper 48 hours’ time, and then log back into the Zone settings for your domain and confirm the proper IPs were entered.

This overview has discussed GoDaddy.com DNS zonefile configuration. See also the DNS page, and the page on the JavaScript API.