Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have several Amazon EC2 instances, running Ubuntu 10.04, with which I'd like to use Amazon's Route53. I setup a script as described in Shlomo Swidler's article, but I'm still missing something.

When the script runs, it doesn't return any output, which I initially assumed meant it ran correctly. However, when I check the DNS records using MyR53DNS, there are no entries for my instances. Here's my script:

#!/bin/tcsh -f

set root=`dirname $0`
setenv EC2_HOME /usr/lib/ec2-api-tools
setenv EC2_CERT /etc/cron.route53/ec2_x509_cert.pem
setenv EC2_PRIVATE_KEY /etc/cron.route53/ec2_x509_private.pem
setenv AWS_ACCESS_KEY_ID myaccesskeyid
setenv AWS_SECRET_ACCESS_KEY myaccesskey

/usr/bin/ec2-describe-instances | \
perl -ne '/^INSTANCE\s+(i-\S+).*?(\S+\.amazonaws\.com)/ \
and do { $dns = $2; print "$1 $dns\n" }; /^TAG.+\sShortName\s+(\S+)/ \
and print "$1 $dns\n"' | \
perl -ane 'print "$F[0] CNAME $F[1] --replace\n"' | \
xargs -n 4 /etc/cron.route53/cli53/cli53.py \
rrcreate -x 60 mydomain.com

Does anyone see a problem with this script? If its not the script, what else could be preventing my Route53 domain from being updated?

I am using the Security Groups to IP-restrict the instances. I've tried opening port 53, but that didn't seem to have an effect. Is there another port that Route53 uses?

I'd appreciate any help or guidance the ServerFault community can offer. Let me know if you need any further info.

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

I posted this question in several different places looking for an answer. I finally found it on the StackExchange Unix & Linux site.

I hope this helps someone else out there.

share|improve this answer
    
It would be more helpful if you posted the correct answer here as well. –  daveadams Feb 15 '11 at 16:46
add comment

What region are you expecting to be using? Remember the default is US-East, if yours is anything else you need to explicitly say so.

share|improve this answer
    
My instances are all in us-east-1c. I think I did specify US-East as the region when I setup my zone, but I'll have to double-check that. –  ks78 Feb 14 '11 at 21:51
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.