Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mass update spf records

Discussion in 'General Discussion' started by urgido, Feb 24, 2014.

  1. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    122
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Hi
    I need to change all my spf records from "v=spf1 +a +mx +ip4:1.2.3.4. ~all" to "v=spf1 +a +mx +ip4:3.3.3.3. ~all" to three hundred domains. Is there a way to do in massive way with a command line?
     
  2. talk2prakash

    talk2prakash Member

    Joined:
    Sep 29, 2013
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Before you perform this I recommend you to take a backup of /var/named directory

    cd /var/named

    sed -i 's/+ip4:1.2.3.4/+ip4:3.3.3.3/g' *.db

    Restart named service
     
  3. urgido

    urgido Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    122
    Likes Received:
    7
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    thank you :)
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice