Your Ad can be there
+ Post New Thread
Results 1 to 2 of 2

Thread: How to bulk update SPF DNS record on all cpanel account DNS zones

  1. #1
    Administrator
    Join Date
    Mar 2013
    Posts
    2,725

    How to bulk update SPF DNS record on all cpanel account DNS zones

    Hello,

    i was interested to know how to simply do this. Edit SPF DNS record in all cPanel account's DNS zone files.

    I read i have to change serial numbers in DNS zone files too in order to changes take effect.

    And here is what i found:

    method 1.

    cd /var;cp -rp named named.backup_datehere
    sed -i "s|spf1 |spf1 valueiwantedtoadd |g" *.db
    go to WHM/DNS functions/Set Zone Time To Live (TTL) and select all domains (click first entry, hold shift key and click last entry) change TTL number a bit, example from 3600 to 3610 and apply change. It will change serial numbers in all zones and that is all needed to do

    method 2.

    https://forums.cpanel.net/threads/mass-update-spf.431371/#post-1744281

    method 3.

    https://documentation.cpanel.net/display/68Docs/The+spf_installer+Script

    example script to run it on all accounts once single account test was successfull:
    for user in `ls -A /var/cpanel/users` ; do
    echo "Working with user $user"
    /usr/local/cpanel/bin/spf_installer $user ......
    echo "sleep 1" && sleep 1; done

  2. #2


    Is this useful / helpfull? Yes | No
    Thanks for explaining about bulk SPF record on server.
    DKIM record are also protect from spamming, you can easily enable them from WHM panel.
    1. Login to WHM.
    2. Click on "Modify an account".
    3. Here you have to check the box "Enable DKIM on this account." for DKIM and "Enable SPF on this account." for SPF record.
    4. At last click on "Save".

    You can also do enable DKIM and SPF records in command line.

+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 11-09-2015, 11:58 AM
  2. How hacker get cpanel account password?
    By Fli in forum Shared Hosting
    Replies: 1
    Last Post: 08-09-2015, 07:03 AM
  3. Replies: 0
    Last Post: 04-21-2014, 08:06 PM
  4. WTB Reseller account WHM/cpanel
    By Fli in forum Reseller: Offers & Requests
    Replies: 0
    Last Post: 04-10-2014, 07:50 PM
  5. Replies: 0
    Last Post: 04-25-2013, 06:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam