Question

Hown Configure a Subdomain to Other Server

  • Posted on March 15, 2014
  • webgahaAsked by webgaha

i configure a subdomain to point a other server (in zone file). What i want know now is: that config i need to do in this other server subdomain to be accessible? please, be helpful in your explanation. I’m iniciant in linux.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

a zone fila complete? <br> <br>$TTL 86400 <br>@ IN SOA subdomain.domain.com…com. root.mydomain.com. ( <br> 2013042201 ;Serial <br> 3600 ;Refresh <br> 1800 ;Retry <br> 604800 ;Expire <br> 86400 ;Minimum TTL <br>) <br>; Specify our two nameservers <br> IN NS ns1.subdomain.domain.com. <br> IN NS ns2.subdomain.domain.com. <br>; Resolve nameserver hostnames to IP, replace with your two droplet IP addresses. <br>ns1 IN A 1.1.1.1 <br>ns2 IN A 2.2.2.2 <br> <br>; Define hostname -> IP pairs which you wish to resolve <br>@ IN A 3.3.3.3 <br>www IN A 3.3.3.3

There are two general steps that you need to follow: <br> <br>1.- Create an A record in your Zone File for the subdomain pointing to the new server. e.g. <br> <br>subdomain.domain.com. 3600 IN A 0.0.0.0 <br> <br>2.- Configure the webserver in your new server so that it can serve that subdomain. This depends on the webserver running on your other machine (Apache, Nginx, lighthttp, etc)