Hown Configure a Subdomain to Other Server

March 15, 2014 2.9k views
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.
2 Answers
There are two general steps that you need to follow:

1.- Create an A record in your Zone File for the subdomain pointing to the new server. e.g. 3600 IN A

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)
a zone fila complete?

$TTL 86400
@ IN SOA (
2013042201 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
; Specify our two nameservers
; Resolve nameserver hostnames to IP, replace with your two droplet IP addresses.
ns1 IN A
ns2 IN A

; Define hostname -> IP pairs which you wish to resolve
@ IN A
www IN A
Have another answer? Share your knowledge.

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