Yeni Alımlara Özel Hosting, Server, VDS Ürünlerinde %50 İndirim Fırsatı! Kaçırmayın... (Stoklarla Sınırlıdır)

Arama Yap Mesaj Gönder
Mesaj Gönder Arama Yap

Biz Sizi Arayalım

+90
X
X

Select Your Currency

Türk Lirası Euro
X
X

Select Your Currency

Türk Lirası Euro

Knowledge Base

Homepage Knowledge Base Domain Name Registry Configuring Main Domains and Subdom...

Bize Ulaşın

Halkalı Merkez, Fatih Cd. özgür apartmanı no 45 iç kapı no: 3, 34303 Küçükçekmece/İstanbul

Configuring Main Domains and Subdomains Across Different Hosting Solutions: A Comprehensive Guide

Configuring your main domain and subdomains on different hosting services is a common practice for managing large and complex web projects. This setup can be particularly useful when you need to host different web applications or services. In this article, we will delve into how to run a main domain (ekasunucu.com) on one hosting provider and a subdomain (test.ekasunucu.com) on another server, using three different methods: DNS management at the domain registrar, using a hosting provider's DNS Zone Manager, and utilizing Cloudflare.

DNS Management at the Domain Registrar

Your domain management panel allows you to manage the DNS settings for your domain. This method is performed at the company where you purchased your domain.

1. Creating an A Record for the Main Domain:

  • Log in to your domain management panel.
  • Navigate to the DNS management page.
  • Add an "A" record. Enter "@" in the "Host" field to represent your main domain name and enter the IP address of the server where your main domain is hosted in the "Points to" field.

2. Creating an A Record for the Subdomain:

  • On the DNS management page, add a new "A" record.
  • This time, enter your subdomain name (e.g., "test") in the "Host" field and the IP address of the server where your subdomain is hosted in the "Points to" field.

With these steps, your main domain and subdomain will be directed to different servers.

Using the Hosting Provider's DNS Zone Manager

If your website is hosted with a provider that offers DNS management tools, you can make similar adjustments through the DNS Zone Manager.

1. Log In to Your Hosting Control Panel:

  • Typically, you can access the DNS Zone Manager through tools like cPanel or Plesk.

2. Setting an A Record for the Main Domain:

  • Go to the DNS Zone Manager.
  • Create a new "A" record for your main domain and enter the IP address of your server.

3. Setting an A Record for the Subdomain:

  • Add another "A" record, but this time for your subdomain (e.g., "test") and direct this record to the IP address of the server hosting your subdomain.

This process allows you to manage your DNS settings through your hosting provider's control panel.

Managing with Cloudflare

Cloudflare offers CDN and DNS management services that can provide additional security and performance benefits. Managing your DNS settings through Cloudflare can enhance your website's speed and security.

1. Log In to Your Cloudflare Account:

  • If you don't have an account, create one and add your domain to Cloudflare.

2. Setting DNS Records:

  • Navigate to the DNS management page on Cloudflare.
  • Add an "A" record for your main domain and direct it to your server's IP address.
  • Add another "A" record for your subdomain and direct it to the IP address of your subdomain's server.

3. Wait for DNS Changes to Propagate:

  • DNS changes do not happen instantly. Propagation can take a few hours, sometimes up to 24 hours.

By following these methods, you can successfully run your main domain and subdomain on different hosting services. Each method offers advantages depending on your specific situation and preferences. Carefully managing your DNS settings ensures that your website operates correctly and provides the best experience to your visitors.

Can't find the information you are looking for?

Create a Support Ticket
Did you find it useful?
(59 times viewed / 2 people found it helpful)



Call now to get more detailed information about our products and services.

Top