Security in the hosting services cover three major factors namely Privacy, Integrity and Availability. This is certainly an important measure to secure your website against the open access for the intruders. Make sure that the security measures are imposed in the most specific manner.
Find Articles, Free Articles Directory | Web Hosting Articles
massive
Web Hosting Business – How You Can Set Up Your Own Reseller Web Hosting Business For Massive Profits
The web hosting business is not only widely recognized as an extremely lucrative & profitable business, but it is a business that is growing in leaps & bounds. So bearing this in mind, it would make sense for any savvy business person to grab their share of this massive, multi-million dollar pie.
Find Articles, Free Articles Directory | Web Hosting Articles
Massive Amazon Route53 API Bind Zone Import Script
Hello there,
Occasionally some of our managed services work has us dealing directly with other cloud providers such as Amazon. One of our clients set a requirement to migrate over 5,000 domain’s to Amazon’s Route53 DNS service.
There was little doubt that this could be automated, but since we have never done this massive of a deployment through Amazon’s API directly, we thought it might be interesting to post the process as well as the script through which we managed the import process.
Essentially the script utilizes a master domain name list file as its basis for looping through the import. The master list refers to the bind zone files and imports them into Amazon’s Route53 via the Cli53 tool package.
One final note, the script outputs all completed domain imports into a CSV file with the following format :
domain.com,ns1.nameserver.com,ns2.nameserver.com,ns3.nameserver.com,ns4.nameserver.com
This is because when facilitating the actual nameserver change request, all the nameservers assigned to domains when imported to Route53 are randomly generated, so the script has to keep track of these nameserver/domain associations.
The script isn’t perfect and could benefit from some optimizations and more error checking (it does a lot of error checking already, however), but here it is in its entirety. We hope you will have some use for it!
#!/bin/sh # Import all zone files into amazon # Star Dot Hosting 2012 # www.stardothosting.com currentmonth=`date "+%Y-%m-%d"` #sanitize input and verify input was given command=`echo "$ 1" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` if [ -z "$ 1" ]; then echo "AWS ZONE IMPORT" echo "---------------" echo "" echo "Usage : ./importzone.sh file.txt" echo "" exit 0 fi echo "zone import log : $ currentmonth" > /var/log/importzone.log 2>&1 echo " " >> /var/log/importzone.log 2>&1 for obj0 in $ (cat $ 1); do echo "checking if $ obj0 was already migrated ..." ls -la /usr/local/zones/$ 1-zones/complete | grep -w $ obj0 >> /dev/null 2>&1 if [ "$ ?" -eq 1 ] then echo "importing $ obj0 ..." #check if zone file has NS records cat /usr/local/zones/$ 1-zones/$ obj0.txt | grep NS >> /dev/null 2>&1 if [ "$ ?" -eq 0 ] then echo "Nameserver exists, continuing..." else echo "Adding nameserver to record..." echo "$ obj0. 43201 IN NS ns1.nameserver.com." >> /usr/local/zones/$ 1-zones/$ obj0.txt fi #check if zone exists /usr/local/zones/cli53/bin/cli53 info $ obj0 >> /var/log/importzone.log 2>&1 if [ "$ ?" -eq 0 ] then # grab NAMESERVERS nameservers=`/usr/local/zones/cli53/bin/cli53 rrlist $ obj0 | grep "NS" | awk -F "NS\t" '{printf "%s\n", $ 2}' | sed 's/.$ /g' | sed ':a;N;$ !ba;s/\n/,/g'` # import zone file /usr/local/zones/cli53/bin/cli53 import $ obj0 -r -f /usr/local/zones/$ 1-zones/$ obj0.txt if [ "$ ?" -eq 0 ] then #move to complete folder mv /usr/local/zones/$ 1-zones/$ obj0.txt /usr/local/zones/$ 1-zones/complete else echo "There was an error in importing the zone file!" >> /var/log/importzone.log exit 1 fi else #create on route53 /usr/local/zones/cli53/bin/cli53 create $ obj0 >> /var/log/importzone.log 2>&1 # grab NAMESERVERS nameservers=`/usr/local/zones/cli53/bin/cli53 rrlist $ obj0 | grep "NS" | awk -F "NS\t" '{printf "%s\n", $ 2}' | sed 's/.$ /g' | sed ':a;N;$ !ba;s/\n/,/g'` # import zone file /usr/local/zones/cli53/bin/cli53 import $ obj0 -r -f /usr/local/zones/$ 1-zones/$ obj0.txt if [ "$ ?" -eq 0 ] then #move to complete folder mv /usr/local/zones/$ 1-zones/$ obj0.txt /usr/local/zones/$ 1-zones/complete else echo "There was an error in importing the zone file!" >> /var/log/importzone.log exit 1 fi fi # output domain + nameservers in a CSV with format : domain.com,ns1,ns2,ns3,ns4 echo "$ obj0,$ nameservers" >> nameserver_registrar_request.txt 2&>1 else echo "Domain already migrated .. !" fi done
Massive Amazon Route53 API Bind Zone Import Script
Hello there,
Occasionally some of our managed services work has us dealing directly with other cloud providers such as Amazon. One of our clients set a requirement to migrate over 5,000 domain’s to Amazon’s Route53 DNS service.
There was little doubt that this could be automated, but since we have never done this massive of a deployment through Amazon’s API directly, we thought it might be interesting to post the process as well as the script through which we managed the import process.
Essentially the script utilizes a master domain name list file as its basis for looping through the import. The master list refers to the bind zone files and imports them into Amazon’s Route53 via the Cli53 tool package.
One final note, the script outputs all completed domain imports into a CSV file with the following format :
domain.com,ns1.nameserver.com,ns2.nameserver.com,ns3.nameserver.com,ns4.nameserver.com
This is because when facilitating the actual nameserver change request, all the nameservers assigned to domains when imported to Route53 are randomly generated, so the script has to keep track of these nameserver/domain associations.
The script isn’t perfect and could benefit from some optimizations and more error checking (it does a lot of error checking already, however), but here it is in its entirety. We hope you will have some use for it!
#!/bin/sh # Import all zone files into amazon # Star Dot Hosting 2012 # www.stardothosting.com currentmonth=`date "+%Y-%m-%d"` #sanitize input and verify input was given command=`echo "$ 1" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` if [ -z "$ 1" ]; then echo "AWS ZONE IMPORT" echo "---------------" echo "" echo "Usage : ./importzone.sh file.txt" echo "" exit 0 fi echo "zone import log : $ currentmonth" > /var/log/importzone.log 2>&1 echo " " >> /var/log/importzone.log 2>&1 for obj0 in $ (cat $ 1); do echo "checking if $ obj0 was already migrated ..." ls -la /usr/local/zones/$ 1-zones/complete | grep $ obj0 >> /dev/null 2>&1 if [ "$ ?" -eq 1 ] then echo "importing $ obj0 ..." #check if zone file has NS records cat /usr/local/zones/$ 1-zones/$ obj0.txt | grep NS >> /dev/null 2>&1 if [ "$ ?" -eq 0 ] then echo "Nameserver exists, continuing..." else echo "Adding nameserver to record..." echo "$ obj0. 43201 IN NS ns1.nameserver.com." >> /usr/local/zones/$ 1-zones/$ obj0.txt fi #check if zone exists /usr/local/zones/cli53/bin/cli53 info $ obj0 >> /var/log/importzone.log 2>&1 if [ "$ ?" -eq 0 ] then # grab NAMESERVERS nameservers=`/usr/local/zones/cli53/bin/cli53 rrlist $ obj0 | grep "NS" | awk -F "NS\t" '{printf "%s\n", $ 2}' | sed 's/.$ /g' | sed ':a;N;$ !ba;s/\n/,/g'` # import zone file /usr/local/zones/cli53/bin/cli53 import $ obj0 -r -f /usr/local/zones/$ 1-zones/$ obj0.txt if [ "$ ?" -eq 0 ] then #move to complete folder mv /usr/local/zones/$ 1-zones/$ obj0.txt /usr/local/zones/$ 1-zones/complete else echo "There was an error in importing the zone file!" >> /var/log/importzone.log exit 1 fi else #create on route53 /usr/local/zones/cli53/bin/cli53 create $ obj0 >> /var/log/importzone.log 2>&1 # grab NAMESERVERS nameservers=`/usr/local/zones/cli53/bin/cli53 rrlist $ obj0 | grep "NS" | awk -F "NS\t" '{printf "%s\n", $ 2}' | sed 's/.$ /g' | sed ':a;N;$ !ba;s/\n/,/g'` # import zone file /usr/local/zones/cli53/bin/cli53 import $ obj0 -r -f /usr/local/zones/$ 1-zones/$ obj0.txt if [ "$ ?" -eq 0 ] then #move to complete folder mv /usr/local/zones/$ 1-zones/$ obj0.txt /usr/local/zones/$ 1-zones/complete else echo "There was an error in importing the zone file!" >> /var/log/importzone.log exit 1 fi fi # output domain + nameservers in a CSV with format : domain.com,ns1,ns2,ns3,ns4 echo "$ obj0,$ nameservers" >> nameserver_registrar_request.txt 2&>1 else echo "Domain already migrated .. !" fi done
Develop Your Website To Meet Massive Traffic
If you wanted to boost your website performance you should opt for Cloud hosting. Cloud hosting services are the best service for an individual client. Cloud is truly fresh in website hosting. This will definitely help to develop your website … Continue reading
Web Hosting UK Blog | Dedicated Servers VPS Hosting Technology Updates
Social Monetizing- must join- get massive
What else you can done with your site? What can you learn about monetizing…or just hang aroundthere and socialize and monetize.. Click here and join this amazing forum… Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post Tell a […]
ProTycoon.com