Rewrite all zone files

damn

Verified User
Joined
Nov 30, 2004
Messages
101
Hello,

I've got exim running off a different IP because the main server IP is dirty, must have been used for spamming previously.

I wish to change the SPF record for all zone files. I have updated the spf record in the named.db template - and can get it to re-write domain zone files for each domain by clicking the 'delete selected' button (without ticking anything) - how can I get DA to re-write all the zone files at once?

Thought I saw Jeff mention echoing something to the DA task queue??
 
Did you move the template to the custom directory first, and then edit it there? If not, then do so, because otherwise it'll get deleted by some future system update.

Yes I've probably posted this before:

Two lines; the "#" is NOT to be typed; it indicates that you run these as root:
Code:
# echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
# service named restart
Jeff
 
jlasman said:
Did you move the template to the custom directory first, and then edit it there? If not, then do so, because otherwise it'll get deleted by some future system update.

Sure did :)

echo service named restart

Doesn't that echo need to go somewhere ;)

jlasman said:
Two lines; the "#" is NOT to be typed; it indicates that you run these as root:

All clear - thanks Jeff.
 
Last edited:
In the interest of keeping the post complete, why don't you post the FreeBSD version of the command :) ?

Jeff
 
Good point Jeff, wish I had of done that myself!

FreeBSD 5.1:

/usr/local/etc/rc.d/named reload

FreeBSD 5.3:

/usr/local/etc/rc.d named restart
 
Back
Top