DNS hosting as a hosting package feature

Webcart

Verified User
Joined
Jan 14, 2004
Messages
387
Hello,

this request is refinement of the following threads:
More flexible DNS control
More Control Over Services

Currently, each domain on the DirectAdmin server can use that server for DNS hosting, that is, it's not possible to offer DNS hosting as a value-added service which could be enabled for qualified accounts only.

We've been experimenting with creating "DNS hosting" custom package item and using its value to automatically delete DNS zones where necessary. We've also created domain_create_post.sh, domain_destroy_post.sh and domain_change_post.sh scripts to maintain an accurate list of existing domains (DA currently uses named.conf file as the index to determine if a domain exists on the server or not).

Unfortunately, this didnt work quite well, since DA apparently checks DNS zone entries for number of tasks. For example, an attempt to add/delete a subdomain failed when there was no DNS zone. Also, it wasn't possible to tell DA to use external mailserver for such domain.

Thank you.
 
Gee, I always thought DA was for webhosting ;) .

We've been hosting DNS for thousands of domains, for years. We've never done it with DirectAdmin :) .

Jeff
 
We just add an user, put domains on unlimited and the rest nothing in the package..

Then he's an DNS only Customer...

This request was actually about disabling DNS hosting for webhosting packages by default and enabling it only where necessary.

Thanks for reminding me how confusing my posts can be sometime :)

Have a great weekend everyone!
 
We've been hosting DNS for thousands of domains, for years. We've never done it with DirectAdmin :) .
Actually, even if you run dedicated DNS servers, it still makes sense to use DA: it will simplify maintenance... unless you dont have that many boxes to manage or/and you manage them all personally.
 
This request was actually about disabling DNS hosting for webhosting packages by default and enabling it only where necessary.
You can't run webhosting without DNS because DA uses the existence of the DNS file as a determination that the domain exists.

Maybe it shouldn't, but it does.

Jeff
 
Actually, even if you run dedicated DNS servers, it still makes sense to use DA: it will simplify maintenance... unless you dont have that many boxes to manage or/and you manage them all personally.
And my posts can be misleading as well. I didn't mean we don't use DirectAdmin DNS; we do for our webhosting. It's for those thousands of domains for which we run DNS without DA-based webhosting, that we don't use DA's DNS.

Sorry about the confusion.

Jeff
 
You can't run webhosting without DNS because DA uses the existence of the DNS file as a determination that the domain exists.

Maybe it shouldn't, but it does.
That's one of the things this request is about :)
If DA stops relying on DNS file, it will be fairly easy to make other changes descibed above as well so that DNS hosting isn't automatically provided for all accounts.

Almost all our hosting clients prefer to keep DNS hosting with their domain registrars nowadays and we would like to keep DNS info in sync at all times.
 
BTW, a fairly easy way to check existence of domains without relying on DNS file is maintaining a file or symbolic link for each created domain name.
For example, here is domain_create_post.sh file:
PHP:
#!/bin/sh

DIRNAME=/usr/local/directadmin/data/domains

mkdir ${DIRNAME}
cd ${DIRNAME}
ln -s /home/${username}/domains/${domain}/public_html ${domain}
 
Another way to keep track would be
Code:
#!/bin/sh
echo ${DOMAIN} >> /usr/local/directadmin/data/admin/domains.list;
exit 0;
and run a grep on it like
Code:
grep ^${DOMAIN}$ /usr/local/directadmin/data/admin/domains.list
to see if it exists in the file. Can use sed to delete the line from the file if the domain is deleted.

Of course the programming itself is all different if added to DA as it will probably be added in as C instead of using shell scripting since C would process it all much faster.
 
does the domains.list include all aliases and redirects? Those need to be checked against too; you can't set up a domain if there's already an alias or a redirect.

Jeff
 
Back
Top