Using blackbox to change multiple dns records for account

browse to https://clouddns.dcx.rackspace.com/zones/search

Enter the account number and click Exact Search

copy the lines from the console to a file called domainlist.txt

domainlist.txt===================

1 View accidentlawyerny.net
2 View acnestories.com
3 View acnewonders.com
4 View aromatherapyrecipe.com
5 View attorneyny.us
6 View attorneynyc.org
7 View bankruptcylawyerny.org
8 View bbbeauty.com

end domainlist.txt===============

browse to https://clouddns.dcx.rackspace.com/scripts/new

click the command you wish to run to get the exact command

for instance edit mx records uses ‘edit_mx_record zone fqdn priority mail_server’

Change the values by running the following command:

perl -pi -e ‘s/^[0-9]+\s+View\s+(.*?)$/edit_mx_record $1 $1 10 mx1.emailsrvr.com/’ domainlist.txt

This will result in a file with the commands to copy into https://clouddns.dcx.rackspace.com/scripts/new. Change the DDI and hit execute, and you should be golden.

About vicki

Welcome to the Sovereign Republic of Vickistan. I am the President here. Lucky me! No taxes or laws yet. Lucky you!
This entry was posted in Linux. Bookmark the permalink.