custom dns-file no rewriting

redeye

Verified User
Joined
May 11, 2004
Messages
145
I want to add records to all zones. I copied dns_a.conf to /usr/local/directadmin/data/templates/custom

edited to:
Code:
|DOMAIN|.=|IP|
localhost=127.0.0.1
mail=|IP|
fallback=80.x.x.x
fallback2=80.x.x.x
pop=|IP|
www=|IP|
ftp=|IP|

I issue a rewrite by:
Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue

The files are rewritten, but the custom config is not used. Even when I copy the custom files to: /usr/local/directadmin/data/templates

no changes are made.

What is missing?


Thx. Redeye
 
If I recall correctly, named files will not get rewritten. Only new files will be affected by the change. You would have to change the existing ones manually.
 
I'm not so sure Jon; we've been using the action=rewrite command to update serial numbers for some time now.

Does anyone have the time to check?

Jeff
 
It could have been added since I last communicated with DA on the issue. The IPs on one of my servers changed and I was trying to update the named files. I eventually just had to search and replace.
 
jmstacey said:
The IPs on one of my servers changed and I was trying to update the named files. I eventually just had to search and replace.

Well i was thinking of that too, but i just thought that it was a feature, and wondered what i did wrong.
 
We use a perl one-liner to do the editing, and then we run the rewrite command to update the serial numbers.

Jeff
 
Back
Top