01-11-2017, 03:40 PM #1
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?
01-11-2017, 04:30 PM #2
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.
01-12-2017, 05:43 AM #3
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
01-12-2017, 08:32 AM #4
One question more, Instead of pointing for a sub domain, I can point for a sub folder
/myblog/ will be hosted on other hosting servers.
I have not ever done this in the past.
01-12-2017, 09:26 AM #5
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.
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.
Options +FollowSymLinks RewriteEngine On Redirect 301 /myblog http://myblog.yourdomain.com/
The Following User Says Thank You to kevinhng86 For This Useful Post:
01-12-2017, 01:49 PM #6
01-12-2017, 02:12 PM #7
01-12-2017, 02:19 PM #8
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
01-12-2017, 06:06 PM #9
06-03-2017, 04:34 PM #10
You should edit the DNS record of the domain and update the IP address of another server as the A record of sub domain.
Sub-domain A 192.168.1.1(IPV4 address of other server)
06-04-2017, 08:35 AM #11
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.
06-13-2017, 09:02 PM #12
What I use is Domain DNS or CloudFlare DNS system.
Any subdomain I create "A" list and trigger to that IP.
Replies: 5 | Views: 390Last post by Gecko, 01-12-2017, 03:02 AM
Replies: 7 | Views: 841Last post by Lampard, 01-28-2017, 08:32 PM
Replies: 3 | Views: 277Last post by KelvinSmith, 06-02-2017, 05:35 AM
Replies: 23 | Views: 1504Last post by WHGBTom, 04-29-2017, 11:08 PM
By energizedit in forum VPS HostingReplies: 14 | Views: 2324Last post by Pavel Sirovatskiy, 01-24-2017, 08:22 AM
By wpspeedster in forum VPS HostingReplies: 7 | Views: 1126Last post by LJSHost, 01-13-2017, 09:12 PM
Replies: 2 | Views: 1070Last post by GswHosting, 01-11-2017, 07:16 PM
Replies: 7 | Views: 1665Last post by racksandcloud, 06-03-2017, 04:31 PM
Replies: 12 | Views: 1657Last post by Rocketrix, 05-10-2017, 10:59 PM
By BlaZeX in forum Dedicated Hosting OffersReplies: 0 | Views: 12Last post by BlaZeX, Yesterday, 08:54 PM
Replies: 2 | Views: 24Last post by Floxera-Jose, Yesterday, 09:54 PM
By Makefort in forum Web HostingReplies: 1 | Views: 19Last post by leckley, Yesterday, 07:22 PM
By fwh in forum AnnouncementsReplies: 0 | Views: 64Last post by fwh, Yesterday, 02:22 PM
Replies: 10 | Views: 90Last post by VirtuBox, Yesterday, 04:31 PM
By Mihai B. in forum Hosting Security and TechnologyReplies: 3 | Views: 653Last post by meetdilip, 04-19-2016, 06:56 PM
By alwolsten in forum Online Business and eCommerceReplies: 0 | Views: 748Last post by alwolsten, 07-24-2015, 03:44 PM
Replies: 2 | Views: 1013Last post by NickTheMusketeer, 01-19-2015, 02:27 PM
Replies: 8 | Views: 1712Last post by dandeedo, 11-27-2014, 05:53 AM
By marco in forum Website ReviewsReplies: 9 | Views: 2832Last post by marco, 10-04-2014, 06:21 PM