The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    66
    Likes Received:
    1
    Trophy Points:
    8
    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:
    66
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    thank you :)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page