automatic dns round robin

devonblzx

Verified User
Joined
Jan 20, 2007
Messages
22
I'm trying to setup an easy round robin DNS with DirectAdmin and was wondering if there was a way to add multiple A records automatically when DirectAdmin adds all the entries.

Originally it will add the...

www 14400 IN A 192.168.1.1

instead I want it to add

www 60 IN A 192.168.1.1
www 60 IN A 192.168.1.2

is this possible?

It would be a pain to have to go in and add this manually every time...

Thanks in advance
 
You can move any template in /usr/local/directadmin/data/templates to the /usr/local/directadmin/templates/custom directory, and make changes to them there.

Jeff
 
I was just about to say I have no /usr/local/directadmin/templates directory but it is in /usr/local/directadmin/data/templates for anyone else who needs to find it.


Thanks for the help Jeff,

Devon
 
I found the dns_a.conf file that contains:

|DOMAIN|.=|IP|
localhost=127.0.0.1
mail=|IP|
pop=|IP|
www=|IP|
ftp=|IP|

Now is there a way to setup an |IP2| or setup different templates for different resellers?

The thing is, I need to put in...

www=|IP|
www=|IP2| --or-- www=255.255.255.255 (IP address of certain Reseller if I can have different templates per user)

I have different IP's for my resellers so I can't put a permanent IP in there if it will affect all my users.
 
DirectAdmin does not hanve an IP2 variable. But you can create a duplicate line with a hardwired IP#.

No, DA doesn't support different templates for different resellers.

You may be able to run a script after the domain is created, that would change the zone file manually. Once the zone file is written, DA should leave it alone.

Jeff
 
Back
Top