subdomain

Caracal

New member
Joined
Jan 24, 2005
Messages
3
Location
The Netherlands
After setting up a development server, I'd like to create a subdomain devel.mydomain.tld on my real server.
First I tried to add a new zone in the DNS admin which didn't work. Now I manually created a subdomain in /var/named/mydomain.tld.db:
Code:
...
$ORIGIN devel.mydomain.tld.
devel.mydomain.tld.    IN      MX      10      mail.devel.mydomain.tld.
mail.devel.mydomain.tld.       14400   IN      A       62.254.10.121
[url]www.devel.mydomain.tld.[/url]        14400   IN      A       62.254.10.121
This seems to work fine, but the new records don’t appear in DA and when. After changing something in the mydomain.tld etry, the subdomain is gone.

Is it posible to create a subdomain in DirectAdmin?
 
Yes, that is called a subdomain. In fact it's a hostname wherefore instantly an apache virtualhost is created.

What I have done is creating a real subdomain so I can add the required MX and A records.

So the subdomains section in DA doesn't really create a subdomain in term of a domain inside an other domain.
I’m afraid DA doesn't support subdomains that way.
 
If you create what you're calling a subdomain, but create it as a domain under DA, then DA will create a zone file for that subdomain, just as if it were a domain.

What you should do is create NS records for the subdomain, in the domain zone, using the same namservers as the main domain.

Then domain resolution should work properly.

Jeff
 
Back
Top