Why I cannot rewrite dns record

iczy

New member
Joined
Oct 4, 2008
Messages
4
I already done custom dns_txt.conf

when I using command "echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue"

Nothing happen!!

I want to rewrite dns record anyone can help me!
 
the queue is not done immediatly it should work after some mins if dont you should check directadmin error logs and system logs
 
I already done custom dns_txt.conf

when I using command "echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue"

Nothing happen!!

I want to rewrite dns record anyone can help me!

Hi,

I have exactly this issue .. but different

Code:
#cat /usr/local/directadmin/data/templates/custom/dns_txt.conf
_dmarc="v=DMARC1; p=none; sp=none; rua=mailto:postmaster@|DOMAIN|; ruf=mailto:[email protected]; fo=1"
|DOMAIN|.="v=spf1 a mx ip4:|SERVER_IP||EXTRA_SPF| ~all"

Code:
# cat /usr/local/directadmin/data/templates/custom/dns_spf.conf
|DOMAIN|.="v=spf1 a mx ip4:|SERVER_IP||EXTRA_SPF| ~all"

i already ran:

Code:
date; \
echo "action=rewrite&value=named&domain=mojo.co.at" >> /usr/local/directadmin/data/task.queue ; \
/usr/local/directadmin/dataskq d2000 ; \
grep dmarc /etc/bind/mojo.co.at.db; \
ls -la $_ ;\
date
>>
Code:
Fri 29 Jan 2021 01:08:28 AM CET
Debug mode. Level 2000

root priv set: uid:0 gid:0 euid:0 egid:0
pidfile written
starting queue
dataskq: command: action=rewrite&value=named&domain=mojo.co.at
File /etc/bind/mojo.co.at.db.temp.27832 appears ok to named-checkzone
sign_zone(caller=writeDB): /usr/local/directadmin/scripts/dnssec.sh sign 'mojo.co.at' 2>&1
dataskq: command: action=named&type=all&value=reload
get_process_list_from_status: running: /usr/bin/systemctl status mysqld.service 2>&1
done queue
_dmarc    86400    IN    TXT    "v=DMARC1; p=none; sp=none; rua=mailto:[email protected]"
-rw-r--r-- 1 root bind 1752 Jan 29 01:08 /etc/bind/mojo.co.at.db
Fri 29 Jan 2021 01:08:29 AM CET

As you can see: the files ARE INDEED touched by the rewrite, but the TXT-record stays the same .. i have no clue why :-(

.. pls help me ?

BIG Thank You & my best regards
-c-
 
Last edited:
the file is recreated with actual timestamp, but dmarc-record stays unchanged.

i am not aware of any fancy-records ..

i tried writing back templates/custom/dns_txt.conf to templates/. , and was stunned to see that after another rewrite the db-file is still unchanged (except serial) ..
 
Last edited:
somehow data/templates/custom/dns_txt.conf gets ignored

update: this is at least the case for existing domains .. whereas NEW domains are correctly created with the values of custom/dns_txt.conf

to rewrite all domains' dmarc-records i cannot use the rewite task .. i might want to edit binds'-db-files with counting-up the serial ..

i wish there would be a better approach :-(


update: it seams that this behaviour is "by design" and there is only an unofficial, CLI-based way to fix this.. so thank you for your support :-)
 
Last edited:
somehow data/templates/custom/dns_txt.conf gets ignored

update: this is at least the case for existing domains .. whereas NEW domains are correctly created with the values of custom/dns_txt.conf

to rewrite all domains' dmarc-records i cannot use the rewite task .. i might want to edit binds'-db-files with counting-up the serial ..

i wish there would be a better approach :-(


update: it seams that this behaviour is "by design" and there is only an unofficial, CLI-based way to fix this.. so thank you for your support :)

To update all previous dmarc records with new template, see this: https://forum.directadmin.com/threa...with-a-new-email-address-automatically.55414/
 
Back
Top