DNS templates for subdomains?

helmutjd

New member
Joined
Mar 20, 2008
Messages
3
Does anyone know if there's some kind of equivalent to dns_a.conf for subdomains? For various reasons I need to setup round-robin DNS for each new subdomain that's created by DA, and it appears that by default, when a subdomain is created, DA just adds a new A record to the zone file with the server's IP address.

We ended up choosing DA because of its great potential for scripting and customizations vs. competing products (which is ideal for our scenario), and it seems odd that we can customize just about everything but this, so perhaps I'm overlooking something.

If there's no template for this, is it safe to modify the zone file directly? Will DA overwrite changes we make? I was thinking that, if all else fails, we might be able to use subdomain_create_post.sh to add our custom A records as needed.

Thanks!
 
Generally DirectAdmin leaves your zone file alone. I suppose it's possible that under certain circumstances it'll rewrite something besides the serial number.

You can always chattr the zone file so DirectAdmin can't touch it, but then of course you'd have to manually make changes. Don't forget that if you change zone files manually you need to update the serial number and restart BIND.

Jeff
 
Back
Top