# Host a subdomain (sub.example.com) and not example.com

**URL:** <https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200>\
**Category:** Hosting Support\
**Created:** [March 31, 2023, 10:15am UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200 "2023-03-31T10:15:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anautonell06](https://forum.infinityfree.com/letter_avatar/anautonell06/32/5_5575768a8748004e209b776fc1b2916d.png) [@anautonell06](https://forum.infinityfree.com/u/anautonell06)\
**Post date:** [March 31, 2023, 10:15am UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/1 "2023-03-31T10:15:05Z")

</div>

### Website URL

book.myprotect.xyz and enterprise.myprotect.xyz

### Error Message

Hi, I want to host a subdomain (only book.myprotect.xyz) on InfinityFree. So basically, I want to host myprotect.xyz on another host and host book.myprotect.xyz and enterprise.myprotect.xyz on InfinityFree (separate accounts). I have been creating NS records but I don’t know if it’s correct. How can I achieve this, and is it allowed or possible?

Thanks

---

<div class="post-metadata">

**Author:** ![anautonell06](https://forum.infinityfree.com/letter_avatar/anautonell06/32/5_5575768a8748004e209b776fc1b2916d.png) [@anautonell06](https://forum.infinityfree.com/u/anautonell06)\
**Post date:** [March 31, 2023, 10:16am UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/2 "2023-03-31T10:16:13Z")

</div>

I meant \*(only book.myprotect.xyz and enterprise.myprotect.xyz)

sorry for the confusion

---

<div class="post-metadata">

**Author:** ![anautonell06](https://forum.infinityfree.com/letter_avatar/anautonell06/32/5_5575768a8748004e209b776fc1b2916d.png) [@anautonell06](https://forum.infinityfree.com/u/anautonell06)\
**Post date:** [March 31, 2023, 10:30am UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/3 "2023-03-31T10:30:31Z")

</div>

![TTL](https://forum-cdn.infinityfree.net/original/3X/8/b/8b66d2747a3dbc3a5f9fc9d0493a2f005988a63f.png)  
Here are my current records.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [March 31, 2023, 11:08am UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/4 "2023-03-31T11:08:14Z")

</div>

myprotect.xyz should be added to hosting account by setting of nameservers

> [@How to point your domain name to InfinityFree nameservers](https://forum.infinityfree.com/t/how-to-point-your-domain-name-to-infinityfree-nameservers/49232/):
>
> Before adding your domain name to your hosting account, you need to point it to the InfinityFree nameservers. This guide will walk you through the necessary steps using [Spaceship](https://www.infinityfree.com/go/spaceship) as an example. Keep in mind that different domain registrars have different interfaces, so the exact steps may vary. Step 0: Find the correct nameservers Before changing your nameservers, you need to determine which nameservers to use. The appropriate nameservers depend on your account type: For new accounts or exist…

Once that’s done, proceed to create the subdomains (book.myprotect.xyz and enterprise.myprotect.xyz) in the hosting account.

Let us know once this is done

---

<div class="post-metadata">

**Author:** ![anautonell06](https://forum.infinityfree.com/letter_avatar/anautonell06/32/5_5575768a8748004e209b776fc1b2916d.png) [@anautonell06](https://forum.infinityfree.com/u/anautonell06)\
**Post date:** [March 31, 2023, 11:41am UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/5 "2023-03-31T11:41:19Z")

</div>

The problem is @KangJL that I want to host my WP site on another provider, if I can migrate everything (plugins, template, text, media, etc) from my old hosting provider to Infinityfree I would do the way you are telling me.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [March 31, 2023, 12:31pm UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/6 "2023-03-31T12:31:17Z")

</div>

> [@anautonell06](#):
>
> I want to host my WP site on another provider

Well you can do that. Once domain is added to hosting account and subdomains are created,  
you can shift the base domain to whatever host you want

Only A/CNAME record is needed to maintain the subdomains created here

---

<div class="post-metadata">

**Author:** ![anautonell06](https://forum.infinityfree.com/letter_avatar/anautonell06/32/5_5575768a8748004e209b776fc1b2916d.png) [@anautonell06](https://forum.infinityfree.com/u/anautonell06)\
**Post date:** [March 31, 2023, 12:36pm UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/7 "2023-03-31T12:36:24Z")

</div>

Alrighty.

---

<div class="post-metadata">

**Author:** ![anautonell06](https://forum.infinityfree.com/letter_avatar/anautonell06/32/5_5575768a8748004e209b776fc1b2916d.png) [@anautonell06](https://forum.infinityfree.com/u/anautonell06)\
**Post date:** [March 31, 2023, 1:39pm UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/8 "2023-03-31T13:39:11Z")

</div>

How can I shift the base domain? I created a account and created the two subdomains in the cPanel. Can I change my Nameservers to my other host? @KangJL

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [March 31, 2023, 2:16pm UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/9 "2023-03-31T14:16:09Z")

</div>

Yep

change the nameservers back to however you want them, then create an A record with the name of the subdomain, and the value of the IP address shown in the client area

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [April 7, 2023, 2:16pm UTC](https://forum.infinityfree.com/t/host-a-subdomain-sub-example-com-and-not-example-com/74200/10 "2023-04-07T14:16:32Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
