mass update spf records
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?
-
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 0 -
thank you :) [quote="talk2prakash, post: 1580301">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 0 -
You may also want to increment the serial numbers in the zone after making the change. EX: How to increment serials in all zones Thank you. 0
Please sign in to leave a comment.
Comments
3 comments