Problem with Subdomains

ton31337

New member
Joined
Aug 1, 2007
Messages
1
Hello,

how can I add the user with subdomain ? I see, that when I want to add the new client, I have to add the domain name. But what must I do, if I want to add the client to the subdomain ?

In example:

here is the domain: example.org. How cat I add the client with client.example.org ?

When I type client.example.org, DA automatically create the DNS zone with "client.example.org", as seperated file..

Thanks.
 
DirectAdmin takes advantage of what I call a bug in BIND (the creators at ISC call it a feature; they and I have argued over it for a time, but I eventually gave up); as long as the domain's zone file is on the server, whether or not there's a reference to the subdomain in the domain's zone file, the subdomain's zone file will just work.

If your subdomain's zone file is located on a different server you'll have to access it somehow and add at least one NS record to the main file for the subdomain, or adding all the records you need to access the subdomain.

Jeff
 
Okay you say this is a bug they say its a feature, I need the functionality!


we have a domain hosted on one of our servers:

domain.com


we have setup multi server DNS, domain.com is the same across both.


now I add a new account to directadmin: gso.domain.com

a new zone is created and shows correctly at both dns servers.



# nslookup domain.com

returns ip address


# nslookup gso.domain.com

returns timeout no servers could be reached.


this has been bugging me for weeks and I cannot find an answer searched everywhere.


I need to be able to create new accounts that are subdomains that resolve.


Any help is much appreciated!
 
You need NS records in the zone file for the main domain, assigning the nameservers for the subdomain.

In DirectAdmin:

Code:
gso.domain.com.     NS     ns1.example.com
gso.domain.com.     NS     ns2.example.com
Jeff
 
You need NS records in the zone file for the main domain, assigning the nameservers for the subdomain.

In DirectAdmin:

Code:
gso.domain.com.     NS     ns1.example.com
gso.domain.com.     NS     ns2.example.com
Jeff

Does this mean that whenever a user goes in to create a subdomain, he has to change the NS records manually???...

If he does, this method seems to be a little lame doesn't it??...

One would think that the NS records would be automatically created just they are when he adds a domain name...
 
Last edited:
If they're both on the same server, you shouldn't have to create nameserver references; somehow I thought one was on one machine and one on the other.

Do both machines have both zone files?

If you post the real domain name and subdomain name someone (perhaps me) can take the time to look at a realworld scenario instead of try to guess a hypothetical scenario.

Jeff
 
Jeff.. Instead of duplication of information, I'll refer you to this thread: http://www.directadmin.com/forum/showthread.php?t=23585

If they're both on the same server, you shouldn't have to create nameserver references; somehow I thought one was on one machine and one on the other.

Do both machines have both zone files?

If you post the real domain name and subdomain name someone (perhaps me) can take the time to look at a realworld scenario instead of try to guess a hypothetical scenario.

Jeff
 
I had already responded there but I just fixed a typo and added some more, so even if you've read it already, please check it again.

Jeff
 
Wow I encoutered the same problem, main domain on server X and subdomain on server Y and multiserver active.

Weird enough some clients do work but some don't. I added the nameservers for the subdomain on the main domain. Lets see if that helps.
 
Back
Top