PDA

View Full Version : custom dns-file no rewriting



redeye
03-27-2006, 06:54 AM
I want to add records to all zones. I copied dns_a.conf to /usr/local/directadmin/data/templates/custom

edited to:


|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:

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

jmstacey
03-27-2006, 08:45 AM
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.

nobaloney
03-27-2006, 09:15 PM
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

jmstacey
03-27-2006, 09:20 PM
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.

redeye
03-28-2006, 06:47 AM
Originally posted by jmstacey
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.

nobaloney
03-28-2006, 11:11 AM
We use a perl one-liner to do the editing, and then we run the rewrite command to update the serial numbers.

Jeff