Custom DNS Templates not working

Imtek

Verified User
Joined
Dec 11, 2005
Messages
227
Location
The Netherlands
I have a problem with adding some custom template changed to my existing domains in DA.

I customized my dns_a.conf and dns_mx.conf in /usr/local/directadmin/data/templates/custom like:

dns_a.conf
Code:
|DOMAIN|.=|IP|
localhost=127.0.0.1
mail=|IP|
mail20=84.*.*.*
pop=|IP|
www=|IP|
ftp=|IP|


dns_mx.conf
Code:
mail=10
mail20=20
Then i did a rewrite with:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue

After that no changes, it only works with new domains, how can i make it work for all my existing domains :rolleyes: ?

Note:
84.*.*.* is displayed this way for privacy reasons.
 
Last edited:
It doesn't work for old domains; you'll have to write a script to change them.

Jeff
 
Ok, thats a option DirectAdmin is still missing for people who want to globally change things after their domains is already added in DirectAdmin before this change.

Maybe John can create a little script for this, i saw a few topics about this matter on the forum and on other websites.

I will mail a request to John :)
 
Last edited:
Hello,

So imtek, did you find something ?

i'm lookign for a script that can reload all existing zones according to customized dns templates.

Any ideas ?

Thanks
 
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d400
 
confirmed

the rewrite action for "named" is not working .. the "httpd"-pendant is working as expected , also handeling existing domains properly ..

the named-rewrite simply doesnt rewrite anything at all ..
there are no errors in the da-logs

i would expect the named-routine to be as effective as the httpd-routine for adopting dns-entries

can development please take a look into this issue ?

thanks in advance

best regards

-c-
 
the rewrite action for "named" is not working .. the "httpd"-pendant is working as expected , also handeling existing domains properly ..

interresting detail: one of my "old" domains was modified as expected , but it was the only one .. all other have not been touched .. so i expect an error occoured but unlogged ..

@support: please have a look at this :confused:
 
Check for differences in the ownership and rights of the zone that was modified vs the ones that weren't.

Are they different?

Jeff
 
Check for differences in the ownership and rights of the zone that was modified vs the ones that weren't.

Are they different?

Jeff

since only one domain has been modified by the template i have no other to compare it to .. and yes .. all domains belong to different users
 
For me updating the DNS templates DO result in changes in the zone files. But it's not automatic. You have to run this command to make it happen:
Code:
# echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue

Jeff
 
It doesn't work for old domains; you'll have to write a script to change them.

Jeff

hmm .. so its a doublenegation .. of course it works for new domains , but compared to the httpd-function which DOES rewrite also existing configs correctly , the named-function doesnot .. in this case the way of how these functions work differs within ..

expected would be: the are both working on existing configs ..
 
Back
Top