How to add 'webmail' A record in all domains?

What part doesn't work? I did it yesterday and it worked fine for me.
 
Something like this (NOT TESTED BY ME):


Code:
for domain in $(cat /etc/virtual/domainowners | cut -d\: -f1); 
do 
    echo "action=dns&do=add&domain=${domain}&type=A&name=webmail&value=[B]1.2.3.4[/B]&ttl=3600" >> /usr/local/directadmin/data/task.queue
done;

Change the IP 1.2.3.4 with your value.

Give 1 minute or two for changes to apply.

related:

https://www.directadmin.com/features.php?id=2119
 
Back
Top