PDA

View Full Version : Rewrite all zone files



damn
09-16-2005, 12:34 AM
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??

nobaloney
09-18-2005, 03:40 PM
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:

# echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
# service named restart
Jeff

damn
09-18-2005, 05:08 PM
Originally posted by jlasman
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 ;)


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

All clear - thanks Jeff.

nobaloney
09-18-2005, 11:27 PM
My mistake about the duplicate "echo"; original edited.

Jeff

damn
09-22-2005, 05:40 PM
No probs, using FreeBSD anyway, so that command no good

nobaloney
09-22-2005, 06:04 PM
In the interest of keeping the post complete, why don't you post the FreeBSD version of the command :) ?

Jeff

damn
09-22-2005, 06:13 PM
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