Why is there a red “X” (DNS error) for my domain’s name servers?

Generally, there are two cases in which your domain name may appear with the red X mark in the Hosted Domains section of your Control Panel: either the domain name does not have the required name servers set or the DNS update has not been completed yet.

Domain name registrations and DNS modifications could take up to 24 hours to update after they have been initiated.

You can find the name servers that you should use for all your domain names above the hosted domains table.

If you’ve registered your domain with us and you haven’t made any changes to the name servers yourself, it should already be using our name servers.

However, if the domain was registered or added to Hosted Domains more than 24 hours ago but you still see a red  mark indicating that the name servers are not correct, you can try to refresh the name servers’ status manually. 

You can do that by clicking on the NS status icon in the first column of the table of hosted domains. 

If this does not work, you will need to check if you have the correct name servers set for your domain.  

To do that, in the Registered Domains section right click on the given domain name and then select the NS status option. 

This will bring up a window with two fields (one for each name server). These fields show you the two name servers that the domain name is currently using. 

To change the name servers, just type in the ones that are featured in the Hosted Domains section and click on the Change NSes button.

Make sure that domain names registered with another company and added to your Hosted Domains here are using our name servers – usually you can do this from the domain management panel provided by your registrar (the company you registered the domain(s) with).

If you are sure that your domain is using the correct name servers and more than 24 hours have passed since you registered/hosted the domain or updated the name servers, then it is most likely our system that hasn’t “noticed” the change yet.

If that’s the case, we can force the system to check the name servers of your domain.

To request this, please open a ticket from the Help center or the button below.

Can I use a domain name I registered with another company (registrar)?

When you register a domain name you reserve the name for a period of time (usually a year or two).

It is not necessary to have your domain name registered with the same company that would be hosting your website (and thus your domain).

However, you have to point the domain to your hosting space to make it work properly. This is done by applying your hosting company’s name servers to your domain name.

Inside the domain control panel provided by your registrar (the company you registered the domain with) you should have the option to change the name servers, which may also be referred to as NS or DNS change.

To properly host a domain registered with another company with us, you must:

  1. Add the domain to your Hosted Domains list (My Domains > Hosted Domains)
  2. Set our name servers for your domain
  3. Wait for the name server change to propagate (usually within 12-24 hours)

Additional information and instructions could be found in the following articles:
– How do I host a domain name?
– What are the correct name servers (DNS) for my domain?

How to register a domain name?

With the growing number of websites on the Internet, it is becoming harder and harder to find a suitable domain name to register – one that is short, simple, to the point, and easy to remember.

That’s why, if you come across such a domain name that is suitable for your business or personal website, it is recommended that you register it right away.

Even if your website is not ready yet. You can register unlimited domain names through your account with us and there is no need to host them all. To find more information on hosting a domain name, please refer to the article: How do I host a domain name?

You can easily register a domain name via the Registered Domains section (My Domains > Registered Domains) of the Web Hosting Control Panel. Once you open that menu you should click on the Register/Transfer Domain button on the right-hand side.


Domain Manager - Register Domain

To find our Domain Search form, click on the Domain Search button on the left sidebar of the page. This form will help you find an available domain name for you to register. In the section that is titled Search for a domain: you should input the domain name that you would like to register (what you enter will replace the predefined text my-best-domain.com).

Below that you have a list of all domain types (TLDs) that we can register and you have the option to select and deselect any of them. That way you will be able to choose what domain TLDs to search for.


Domain Search Form

After that you must click on the Search button. That will execute a search based on the parameters that you have provided and you will be forwarded to the next page Domain Search Results to see the results.

If a domain name is available for registration you will see a Register button next to it. If you are trying to register a domain name, yet only a Transfer option appears, this simply means that someone else already owns the domain name and it is not available for registration.

If you own this domain name you can transfer it to our company by selecting the Transfer button. For more information on transferring a domain name, please refer to the What is a domain transfer? article. If you find the desire domain(s) you have to click on the Proceed with the order button.

On the next page, you also have the option to make a new search if the results from the initial one are not satisfactory. You can keep modifying the search parameters until you find a domain name that you wish to purchase.

There you will find a checkbox named Host this domain name with us. This gives you the option to immediately host the domain name after you submit the payment for the registration. If your current hosting plan does not allow hosting more domain names, you will be provided with the options to purchase an additional hosted domains upgrade or upgrade to a higher package, if one is available.

As soon as you find the domain name that you are looking for and you are ready to proceed with the registration, you must click on the Register button. That will take you to the next step – the contact information for the WHOIS record. Please make sure that you provide accurate contact details. This information will be publicly available.

For some domain TLDs you can purchase an additional service – WHOIS protection (also called ID protection) – that will conceal and protect your contact information. For detailed information about that service, please refer to the What is WHOIS ID protection? article. Once you fill out the registrant section, and if you wish to use the same contact information for all the other sections, there is an option to copy the same information in the other sections as well.

Before proceeding any further, you must agree with the Domain Registration Terms, the Domain Resolution Policy & the eNom Registration Agreement. It is recommended that you familiarize yourself with these documents.

And last, but not least, you need to choose the payment method you would like to use and then click the Continue button on the right to proceed to the payment page, where you will enter your payment information. If none of the listed payment options is suitable for you, please refer to the How to Pay Without a Credit/Debit Card or PayPal article.

What is a domain transfer?

A domain name transfer involves a domain name that you’ve already registered with another company but wish to transfer over to us. 

There are four general requirements for a successful transfer of a domain name to go through:

  1. The domain name must be at least 60 days old – should not be registered less than 60 days ago
  2. The domain name must be unlocked for transfer (For more information, please refer to: How to lock/unlock a domain name?)
  3. The domain”s EPP transfer authorization key must be provided (if the given TLD supports such) – it could be acquired from the domain name’s current registrar (For more information, please refer to: EPP (authorization code))
  4. The transfer verification emails must be responded to – they are sent within 24 hours after the domain transfer is initiated to the Administrative Contact email address specified in the WHOIS record of the domain name

Once the domain transfer is confirmed by following the instructions in the transfer verification email, the transfer procedure becomes fully automated and may take 3-5 business days to complete.

Some specific domain types (TLDs) have different requirements for transferring a domain name. Some TLDs cannot be transferred at all.

However, the afore-mentioned requirements are valid for the majority of the TLDs (domain extensions).

What is crontab?

The Cron Daemon runs on Unix-based Operating Systems and, in essence, is closely similar to the Windows Task Scheduler.

It allows you to post your own ”magic rules” for useful and time sparing automation of any of the scripts you will be working with.

Cron is what enables users to schedule jobs, which run automatically at a certain date or time and thus perform system administration or script-related tasks.

The crontab is the virtual ”scoreboard” for setting up cron jobs and represents a configuration file to which users write shell commands that run periodically, at a given schedule.

The Cron Daemon is a long running process that executes commands and performs scheduled tasks at a specific date or time.

The stored commands are what we call cron jobs and the utility, which is used to keep a record of them is Crontab.

For your convenience, we have created a visual interface for creating cron jobs.

It is located under the Advanced > Cron Jobs section of your Control Panel.

Learn how to set up a simple cron job in this tutorial: How to set up a cron job?

How to setup a cron job

In this tutorial, we will show you a few useful examples on how to create a cron job for your script-based websites.

Scripts usually include a working environment, which is sophisticated enough to work as a multi-structural base for performing a wide variety of tasks.

Those tasks altogether are easily implemented and combined into forums, informational portals, blogs, billing management systems, etc.

Although most often the implementation of a given script is done in real time and the users operate with a web-driven GUI to navigate through what the given script might offer, there are still some ”assignable” tasks that only site administrators can schedule.

Those tasks are what we call cron jobs – they carry important site/script maintenance information and pass system commands to the Cron Daemon via Crontab. Cron jobs are scheduled to execute shell commands or scripts at a given time or date.

Below you will find a few examples, which represent a shell command execution cron job and a script (cgi / php) execution cron job.

Cron jobs have the following formatting that we will divide into groups:

Cron job time schedule – [ Minute – Hour – Day – Month – Weekday ]

Cron job shell command – [ARGUMENTS]

Cron job script command – [PATH OF PHP/PERL] [ARGUMENTS] [PATH OF PHP SCRIPT]

Here is an example of cron job time scheduling and the allowed cron job operators:

.—————- minute (0 – 59) 
| .————- hour (0 – 23)
| | .———- day of month (1 – 31)
| | | .——- month (1 – 12) OR jan,feb,mar,apr … 
| | | | .—- day of week (0 – 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat 
| | | | |
* * * * * command to be executed

* * * * * => Execute every minute
0 * * * * => Execute every Hour
0 0 * * * => Execute every midnight
0 0 0 * * => Execute every Month
0 0 0 0 * => Execute every Weekdays

You can create cron jobs from your Control Panel.

To do that – navigate to Advanced > Cron Jobs and click on the ‘Create a New CronJob‘ button.

There you can also see the cron jobs that have already been created.

To set up a cron job – you must specify the email address where the results will be sent to, the date and the time when the job should be executed and the command, which should be executed.

Here is an example of running shell command driven cron jobs and script execution cron jobs:

0 * * * * rm -f * /home/www/my-best-domain.com/temp/

This command will initiate the rm (remove/delete) utility for file/folder deletion and will forcibly delete all the files under /home/www/my-best-domain.com/temp/

Let us say that you want to mail newsletters, site updates, etc. to your clients on a daily basis.

Most script systems have already prebuilt scripts for this purpose and many more automated services.

The cron job would look like this:

0 0 0 0 * /usr/bin/php /home/www/my-best-domain.com/mailcron.php

You can learn more on the allowed file types when using Crontab in the following tutorial: Files that could be executed with crontab – allowed file extensions.

Files that could be executed with crontab – allowed file extensions

There are no specific file types that can or cannot be executed from your account.

During our tests, the three most commonly used scripts showed excellent cron job compatibility.

These are PHP, Perl/CGI and bash scripts – with the corresponding extensions – *.php*.pl and *.sh.

Files included in a cron job entry should be Unix executables; in other words – should have execute permissions set.

You can do that using our File Manager (Files > File Manager section of your Control Panel).

Simply click on the desired file and set the permissions to 700 or 755 (the more commonly used format).

When specifying a new Perl cron job from our Crontab menu, we strongly recommend that you include the command perl at the start of the Command to execute field in order to achieve optimal level of support.

If you skip that step, the cron job may not be executed properly and the output may not be sent at all.

Also, when receiving the output of a cron task to your email address, you may get an error stating TERM environment variable not set in addition to the rest of the output.

The easiest way to resolve this error is by starting your bash script files with the following code:

#!/bin/bash
TERM=linux
export TERM

What is SSH, how do I activate and use SSH?

SSH, also known as Secure Shell, is a network protocol that creates a secured channel, which allows data to be transferred and exchanged between two hosts.

Basically, the Internet in its early days was designed to provide ease of use, not security.

SSH substitutes older protocols, such as telnet and rlogin, where passwords were passed in plain text and could be easily intercepted.

You can use SSH in order to connect to a remote machine and execute commands.

For example, you can import a database, find files and edit them.

A server-client environment is used when connecting via SSH. The connection is standardized at TCP port 2222. 

What you need in order to connect is an SSH client software application. PuTTY is one of the most popular.

A server daemon is constantly checking for incoming requests.

So how can you obtain SSH access to your hosting account?

First, check whether SSH is enabled for your web hosting plan – navigate to the Advanced section of your Control Panel and check for the SSH/Shell Access option. If you don’t see this option, it is not included in your web hosting plan.

If it is enabled for your web hosting plan, you will see the SSH/Shell Access option and the status will be either ”Active” or ”Not Active”.

Click on the ”Activate” button.

A message such as the one below indicates that SSH is not included in your web hosting plan:

Your hosting plan type does not allow an additional SSH service to be added! Please refer to the ”Account Usage” table on the left.

You might need to upgrade your plan features by using the ”Add or Upgrade Services” section.

In this case, you can order SSH as an upgrade from the “Add or Upgrade Services” link on the left.

Once you have SSH activated, all you need is an SSH client (e.g. PuTTy), a username and a password.

The username is the same as the one that you use to log into your Control Panel.

The password could be easily set from the Advanced > SSH/Shell Access section.

If you choose to use PuTTy, set the SSH host/server to ssh.supremecenterXX.com (replace XX with the number of the server where your account is located – you can see it in the address bar/URL bar when you are logged into your Control Panel).

How do I setup custom error pages for my website?

Whenever an error occurs on the server, it displays an error page to the visitor with information and tips about the possible cause for the error. These error pages do not match your website’s layout and are sometimes too general.

You may want to set up your custom error pages, which should be displayed to your visitors whenever an error occurs.
website’
There are two methods that could be used to achieve this.

1) Editing the domain/subdomain options in the Subdomain Manager section.

We have embedded the option to set a custom error page for server errors 400, 401, 403 and 404 inside the Subdomain Manager section of your Web Hosting Control Panel (My Domains > Hosted Domains).

Find your domain in the list and click on the “Edit Domain” icon () from Actions column on the right. You are now able to edit the error page options.

You should see the following options:

Error 400 page:
Error 401 page:
Error 403 page:
Error 404 page:

Initially, all error pages are set to “Default“. To set a custom error page, choose “Custom URL” and enter the path to the corresponding error page in the field.

If you haven’t created one yet, do this first and then get back to the Subdomain Manager section to update the settings.

2) Using .htaccess

Just like with the first method, which is described above, you must create the corresponding error page(s) first. When ready, open the File Manager section of your Hosting Control Panel (Files > File Manager) and navigate to your domain/subdomain folder – it usually has the same name as your domain/subdomain and is located inside the www/ directory.

Inside the domain folder create an empty file called .htaccess using the form located at the top of the File Manager section. Then edit the .htaccess file with the plain-text editor and insert the following code:

ErrorDocument 400 /custom400.html
ErrorDocument 401 /custom401.html
ErrorDocument 403 /custom403.html
ErrorDocument 404 /custom404.html

In the above example the custom 404 error page is located in the same folder as the .htaccess file and it is called custom400.html.

Edit the path and the name of each page accordingly to reflect the actual names and location of your custom error pages.

This method would work no matter what the settings in the Subdomain Manager section are.

How to redirect/forward a website (URL redirection)

There are different ways for you to redirect a domain to another one or, in general, one URL to another. Most of the available options are explained in this article:

1. Using our URL Redirection tool
In your Control Panel you will find the URL Redirection section (Advanced > URL  Redirection). For detailed information about the options visit the tool and click on the Help button.

2. Framed redirection
If you want to redirect visitors but keep the URL (address) in the address bar unchanged, you have to use framed redirection. Basically, what you do is create a file that loads the new website (which you want to redirect to) in a frame. To use framed redirection to redirect my-best-domain.com to my-best-domain.net, for example, you can create a file called index.html and put it inside the main folder of my-best-domain.com. The index.html file must have the following code:

<html>
<head>
<title>TITLE OF THE PAGE</title>
<frameset cols = "100%">
<frame src ="http://my-best-domain.net" />
</frameset>
</head>
<body>
</body>
</html>

Of course, make sure to replace “TITLE OF THE PAGE” with the actual title that you want your visitors to see and replace “http://my-best-domain.net” with the actual web address, which you want to redirect the visitors to.

(3) Using .htaccess and the Redirect directive

If you need to forward visitors to the new address and don”t mind that the URL in the address bar will change, you can use the following technique:

Create a file called .htaccess inside the main folder of your domain. You can do this using the File Manager (Files > File Manager) section of your Web Hosting Control Panel. Edit the .htaccess file to put the following code in it:

Redirect 301 / http://my-best-domain.net/

The above code will redirect visitors to http://my-best-domain.net/ and “tell” search engine spiders (bots) that your URL has changed permanently – this is what the 301 code means.

Using this technique you can also redirect specific URLs, for example a single page. If you used to have a page called page.html and you renamed it to newpage.html, you may want to create a redirection, which will forward visitors who try to open page.html to newpage.html. This is how it”s done with .htaccess: 

Redirect 301 /page.html http://my-best-domain.com/newpage.html

*Additional uses of .htaccess:

You have changed the file extension?

RedirectMatch 301 (.*).html$ http://my-best-domain.com$1.php

This example is perfect if you have decided to switch from .html pages to .php, keeping the old names of the pages and changing only the file extensions. Now, be careful with this because any .html page there is will be redirected to a page with the same name but with a .php extension, regardless of whether such .php file actually exists.

Redirect all www traffic to a NON www version of the site (http://www.my-best-domain.com -> http://my-best-domain.com):

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.my-best-domain.com [NC]
RewriteRule ^(.*)$ http://my-best-domain.com/$1 [L,R=301]

Redirect all NON www traffic to a www version of the site (http://my-best-domain.com -> http://www.my-best-domain.com):

RewriteEngine on
RewriteCond %{HTTP_HOST} ^my-best-domain.com [NC]
RewriteRule ^(.*)$ http://www.my-best-domain.com/$1 [L,R=301]

You have purchased SSL for your domain and now wish to redirect ALL traffic to an HTTPS version of your site?

RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule ^(.*)$ https://www.my-best-domain.com/$1 [R]

(4) Redirecting using the META tag refresh
In HTML files you can put a META tag refresh to refresh the page after a certain amount of time. The META tag refresh also allows you to refresh to a new URL, which virtually means forwarding the visitors to a new web address. To use this technique you must create an index.html file inside your domain”s main folder with the following code:

<META http-equiv="refresh" content="0;URL=http://my-best-domain.com">

 This will redirect the visitor immediately to my-best-domain.com.

(5) Using the Location Header in PHP
This technique works similarly to the afore-mentioned one where we redirected the visitor using the HTML META tag refresh. However, instead an index.html file, here you must create an index.php file inside your domain”s main folder and use the following code:

<?
header("HTTP/1.1 301 Moved Permanently");
header ("Location: http://www.my-best-domain.net");
?>

This will redirect the visitor to http://www.my-best-domain.net and will “tell” search engine bots that the address has changed permanently.

(6) Redirecting using JavaScript
Control over what page is loaded into the browser rests in the JavaScript window.location property. By setting window.location equal to a new URL, you will in turn change the current webpage to the one that is specified. If you want to redirect all your visitors to www.my-best-domain.net when they arrive at your site, you will just need the script below:

<script type="text/javascript">
<!--
window.location = "http://www.my-best-domain.net/"
//-->
</script>