My domain name on someone else's hosting

Started by ACKET, Jul 12, 2022, 10:35 AM

Previous topic - Next topic

ACKETTopic starter

Hello everyone.
I have a curious question that has been bothering me for quite some time, and I would appreciate your patience as I am not well-versed in this area. Here's the scenario: I registered a domain and connected it to the DNS servers of a shared hosting provider.

My plan was to launch the website and make it visible on the internet. However, what if someone else linked the same domain to their account with the hosting provider? Would this mean that the domain is no longer under my control? In such a situation, what steps can be taken?
While I realize that this is unlikely to happen, I am still interested in knowing more about it.
  •  

metallexportprom

The ownership of your domain depends on your registrar's perception of your ownership, meaning that the domain will remain yours as long as it is associated with your account with the registrar, rather than with the host. This enables you to host your domain wherever you prefer.

As long as you make timely payments to the registrar (generally an annual fee), the domain will remain under your ownership, unless the registrar goes out of business.
  •  

esparkinfo

This situation may only arise in virtual web hosting when an extra IP address is obtained for the website. In such an event, the problem can be solved by carrying out these steps:
Navigate to the website directory and locate the .htaccess file. If it doesn't exist, create one. Edit this file and insert the following lines of code:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^site\.com$ [NC]
RewriteCond %{HTTP_HOST} !^(.*)\.site\.com$ [NC]
RewriteRule ^(.*)$ http://ya\.com/$1 [R=410,L]

Here:
site.com refers to your website's name. Note that the forward slash preceding the domain zone is crucial.
ya.com is a website to which someone else's domain (any domain other than yours) will link. You can specify any other website on the Internet as your target.

If you have a VPS or dedicated server, the quickest approach is to set the default domain. Refer to this link on how to do that.

If you lack an ISPmanager control panel and possess sufficient Linux skills, you can register the first VirtualHost for the required IP address in any placeholder page in the Apache configuration file. For example:

<VirtualHost 123.123.123.123:80 >
        ServerName default.com
        DocumentRoot /var/www/default
</VirtualHost>

Here:
123.123.123.123 is your website's IP address;
:80 is the Apache port number; it could differ if you installed a frontend server;
/var/www/default references the directory where stub files are located.

Ensure that this VirtualHost is placed before all others.
  •