Web Hosting Forum Login
Not a member yet? Sign up

How to point subdomain to another server?

  • FORUMS
  • WEB DESIGN
  • WEB HOSTING OFFERS
  • ADVERTISING
  • WEB HOSTING
  • REQUEST A HOST
  • BEST WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 12 of 12
  1. #1
    Join Date
    Oct 2013
    Posts
    26
    Thanks
    7
    Thanked 1 Time in 1 Post
    Thumbs Up/Down
    Received: 0/0
    Given: 18/0

    How to point subdomain to another server?

    I'm using WHM/cPanel and I had my domain name hosted on an IP, just wondering how can I setup a sub domain to point to a different server independently without a redirection?

  2. #2
    Join Date
    Jul 2016
    Location
    Hertfordshire, UK
    Posts
    888
    Thanks
    40
    Thanked 176 Times in 147 Posts
    Thumbs Up/Down
    Received: 442/3
    Given: 136/4
    You should just be able to change the DNS for that subdomain in the DNS zone for the domain. Just point those records at the other server.
    Web Hosting | Reseller | VPS
    30 Day Money Back Guarantee | cPanel | 365 Day UK Support | Free Trial
    https://www.ljshost.com

  3. #3
    Join Date
    Jan 2017
    Posts
    58
    Thanks
    16
    Thanked 20 Times in 14 Posts
    Thumbs Up/Down
    Received: 43/0
    Given: 39/0
    Hi elzorro,

    You can login to your DNS management for your domain and add an a record for your sub-domain. The below is a sample record in from my DNS zone. ftp1 would be your sub-domain name. The 0.0.0.0 should be replace with the ip of your other server.

    ftp1 A - IPv4 Address 0.0.0.0

  4. #4
    Join Date
    Oct 2013
    Posts
    26
    Thanks
    7
    Thanked 1 Time in 1 Post
    Thumbs Up/Down
    Received: 0/0
    Given: 18/0
    Quote Originally Posted by LJSHost View Post
    You should just be able to change the DNS for that subdomain in the DNS zone for the domain. Just point those records at the other server.
    Would you mind giving me a real example? I will use A record for this?


    Quote Originally Posted by kevinhng86 View Post
    Hi elzorro,

    You can login to your DNS management for your domain and add an a record for your sub-domain. The below is a sample record in from my DNS zone. ftp1 would be your sub-domain name. The 0.0.0.0 should be replace with the ip of your other server.

    ftp1 A - IPv4 Address 0.0.0.0
    Can you share me an image how to setup this? I am new to WHM/cPanel.

    One question more, Instead of pointing for a sub domain, I can point for a sub folder

    For example

    example.com/myblog/

    /myblog/ will be hosted on other hosting servers.

    I have not ever done this in the past.

  5. #5
    Join Date
    Jan 2017
    Posts
    58
    Thanks
    16
    Thanked 20 Times in 14 Posts
    Thumbs Up/Down
    Received: 43/0
    Given: 39/0
    Quote Originally Posted by elzorro View Post
    Would you mind giving me a real example? I will use A record for this?




    Can you share me an image how to setup this? I am new to WHM/cPanel.

    One question more, Instead of pointing for a sub domain, I can point for a sub folder

    For example

    example.com/myblog/

    /myblog/ will be hosted on other hosting servers.

    I have not ever done this in the past.
    I do not think you can point a folder to another hosting provider. I don't think DNS record allow you to point a folder to an ip, DNS only allow you to point the URL itself but not the fragment of it which is the folder structure. However I think you can point the sub-domain to a difference server and then use mod-rewrite or redirect your folder to your sub-domain.

    For Cpanel edit of DNS record check out this link https://documentation.cpanel.net/display/ALD/Edit+DNS+Zone.

    In Cpanel click on simple DNS zone editor. You will get that screen in the image. In the name box of add an A record put in the sub-domain name. In the address box of add an A record is the I.Pv4.0 address of the hosting server. After fill in that two box you can click add an A record.

    Name:  Screenshot from 2017-01-12 01:21:23.jpg
Views: 82
Size:  52.7 KB

    For redirection you need to use .htaccess file with rewrite engine. You can add the below to the .htaccess file on your web-root directory.
    Code:
    Options +FollowSymLinks
    RewriteEngine On
    Redirect 301 /myblog http://myblog.yourdomain.com/

  6. The Following User Says Thank You to kevinhng86 For This Useful Post:
    elzorro (01-12-2017)

  7. #6
    Join Date
    Jul 2016
    Location
    Hertfordshire, UK
    Posts
    888
    Thanks
    40
    Thanked 176 Times in 147 Posts
    Thumbs Up/Down
    Received: 442/3
    Given: 136/4
    Quote Originally Posted by elzorro View Post
    Would you mind giving me a real example? I will use A record for this?

    Can you share me an image how to setup this? I am new to WHM/cPanel.
    If you upload a screen shot of the zone file for this domain I can show you what needs changing.
    Web Hosting | Reseller | VPS
    30 Day Money Back Guarantee | cPanel | 365 Day UK Support | Free Trial
    https://www.ljshost.com

  8. #7
    Join Date
    Oct 2013
    Posts
    26
    Thanks
    7
    Thanked 1 Time in 1 Post
    Thumbs Up/Down
    Received: 0/0
    Given: 18/0
    Quote Originally Posted by kevinhng86 View Post
    I do not think you can point a folder to another hosting provider. I don't think DNS record allow you to point a folder to an ip, DNS only allow you to point the URL itself but not the fragment of it which is the folder structure. However I think you can point the sub-domain to a difference server and then use mod-rewrite or redirect your folder to your sub-domain.

    For Cpanel edit of DNS record check out this link https://documentation.cpanel.net/display/ALD/Edit+DNS+Zone.

    In Cpanel click on simple DNS zone editor. You will get that screen in the image. In the name box of add an A record put in the sub-domain name. In the address box of add an A record is the I.Pv4.0 address of the hosting server. After fill in that two box you can click add an A record.

    Name:  Screenshot from 2017-01-12 01:21:23.jpg
Views: 82
Size:  52.7 KB

    For redirection you need to use .htaccess file with rewrite engine. You can add the below to the .htaccess file on your web-root directory.
    Code:
    Options +FollowSymLinks
    RewriteEngine On
    Redirect 301 /myblog http://myblog.yourdomain.com/
    I don't think it is simple like that. Thanks for guiding me.
    This should add in cPanel of a domain, not in WHM, right?

    Quote Originally Posted by LJSHost View Post
    If you upload a screen shot of the zone file for this domain I can show you what needs changing.
    Is this the zone file? here is mine

    Name:  dns-zone-file.png
Views: 43
Size:  133.7 KB

  9. #8
    Join Date
    Jul 2016
    Location
    Hertfordshire, UK
    Posts
    888
    Thanks
    40
    Thanked 176 Times in 147 Posts
    Thumbs Up/Down
    Received: 442/3
    Given: 136/4
    That does not seem to be the correct zone file.
    It needs to be the zone file from the domain that has the sub domain you want to point somewhere else.

    WHM creates addon domains as a redirected subdomain for the domain but sub domains are still sub domains.

    for example subdomain.domain.com you would need the zone file for domain.com
    Web Hosting | Reseller | VPS
    30 Day Money Back Guarantee | cPanel | 365 Day UK Support | Free Trial
    https://www.ljshost.com

  10. #9
    Join Date
    Jan 2017
    Posts
    58
    Thanks
    16
    Thanked 20 Times in 14 Posts
    Thumbs Up/Down
    Received: 43/0
    Given: 39/0
    Quote Originally Posted by elzorro View Post
    I don't think it is simple like that. Thanks for guiding me.
    This should add in cPanel of a domain, not in WHM, right?



    Is this the zone file? here is mine

    Name:  dns-zone-file.png
Views: 43
Size:  133.7 KB
    With that panel style, under the add new entries, the first white box just put in your subdomain name. The select box should have an record mention something in regard to A, Cname, etc. Choose A. After that it will probably produce a white box somewhere. Type the I.P in that white box. For Ipv4 server use the A name record. For Ipv6 server use AAAA record.

  11. #10
    Join Date
    May 2017
    Posts
    80
    Thanks
    0
    Thanked 7 Times in 6 Posts
    Thumbs Up/Down
    Received: 38/0
    Given: 5/0

  12. #11
    Join Date
    Dec 2014
    Posts
    93
    Thanks
    1
    Thanked 16 Times in 11 Posts
    Thumbs Up/Down
    Received: 42/0
    Given: 5/0
    I was did this few month ago for monitoring my site.

    What I did?
    I was created a hosting account in my other cPanel server using full domain name like "subdomain.example.com" and then in my main server I only add a A record and point my A record to other server.

    Example DNS record
    subdomain A - IP Here.

    On my other server, I was pointed my subdomain nameserver to main server.

  13. #12
    Join Date
    Jun 2016
    Posts
    52
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Thumbs Up/Down
    Received: 30/1
    Given: 1/0
    What I use is Domain DNS or CloudFlare DNS system.

    Any subdomain I create "A" list and trigger to that IP.

    Done, SIMPLE>

    Thanks

Newer Threads

  1. forumrating
    Gecko
    Replies: 5 | Views: 377
    Last post by Gecko, 01-12-2017, 03:02 AM
  2. forumrating
    Godaddy heavy pricing
    By forumrating in forum Domain Names
    Lampard
    Replies: 7 | Views: 815
    Last post by Lampard, 01-28-2017, 08:32 PM
  3. forumrating
    KelvinSmith
    Replies: 3 | Views: 260
    Last post by KelvinSmith, 06-02-2017, 05:35 AM
  4. AnnaBlanch
    WHGBTom
    Replies: 23 | Views: 1465
    Last post by WHGBTom, 04-29-2017, 11:08 PM
  5. energizedit
    Pavel Sirovatskiy
    Replies: 14 | Views: 2299
    Last post by Pavel Sirovatskiy, 01-24-2017, 08:22 AM

Older Threads

  1. wpspeedster
    LJSHost
    Replies: 7 | Views: 1096
    Last post by LJSHost, 01-13-2017, 09:12 PM
  2. harrygreen90
    GswHosting
    Replies: 2 | Views: 1063
    Last post by GswHosting, 01-11-2017, 07:16 PM
  3. harrygreen90
    DDoS protection service?
    By harrygreen90 in forum Dedicated Server
    racksandcloud
    Replies: 7 | Views: 1595
    Last post by racksandcloud, 06-03-2017, 04:31 PM
  4. harrygreen90
    Rocketrix
    Replies: 12 | Views: 1592
    Last post by Rocketrix, 05-10-2017, 10:59 PM

Latest Threads

  1. LarsJ
    LarsJ
    Replies: 0 | Views: 31
    Last post by LarsJ, Today, 01:21 AM
  2. rad-jason
    djsmiley2k
    Replies: 3 | Views: 20
    Last post by djsmiley2k, Today, 01:58 AM
  3. Kaz Wolfe
    VirtuBox
    Replies: 1 | Views: 25
    Last post by VirtuBox, Yesterday, 05:35 PM
  4. hostslim
    hostslim
    Replies: 0 | Views: 38
    Last post by hostslim, Yesterday, 08:30 AM
  5. hostslim
    hostslim
    Replies: 0 | Views: 26
    Last post by hostslim, Yesterday, 08:30 AM

Similar Threads

  1. Mihai B.
    meetdilip
    Replies: 3 | Views: 643
    Last post by meetdilip, 04-19-2016, 06:56 PM
  2. alwolsten
    alwolsten
    Replies: 0 | Views: 746
    Last post by alwolsten, 07-24-2015, 03:44 PM
  3. Joseph_Hill
    NickTheMusketeer
    Replies: 2 | Views: 1007
    Last post by NickTheMusketeer, 01-19-2015, 02:27 PM
  4. Joe S.
    dandeedo
    Replies: 8 | Views: 1697
    Last post by dandeedo, 11-27-2014, 05:53 AM
  5. marco
    marco
    Replies: 9 | Views: 2822
    Last post by marco, 10-04-2014, 06:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Web Hosting Forum

ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Community

The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!
Copyright ©2017, ForumWeb.Hosting. All rights reserved. Web Hosting Forum for webmasters, web hosting providers, designers and web developers.

Welcome to Forum Web Hosting

The World's Number 1 Web Hosting Community, Reviews & Services

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!