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 just installed an instance with Ubuntu 10.10 x32, micro (free tier), LAMP. It works!
  • I have an elastic ip for my instance, assume: a.b.c.d (also works)
  • I can see my Public DNS: ec2-x-x-x-x.compute-x.amazonaws.com (also works)
  • and my Private DNS and a Private IP
  • I can ssh into my instance
  • I bought a domain, I'm in the Control Panel, please see this picture: http://i.stack.imgur.com/wXTFX.png
  • Here are the option in the control panel: Host Name - IP Address/URL - Record Type (URL Redirect, URL Frame, A, CNAME, TXT Record, URL Redirect 301, AAAA IPv6, NS Record, SRV Record) - MX PREF - TTL

I'm lost, what should I do now?

Goal:

  • Type my domain.com/page.php and display the data on /var/www/page.php on my amazon ec2 instance
share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You'll need to add an A record in your domain registrar's DNS control panel and point it to the elastic IP address you purchased from Amazon.

That'll get the domain to the server. Note, there will be some propagation involved as with any DNS change, so you may not see your results right away.

The @ stands for your domain, ie getbunch.com.

Set both the @ and the www IP address fields to your elastic IP.

share|improve this answer
    
Thanks! That worked (: –  cnandreu Mar 27 '11 at 1:20
    
If I have NS records pointing to some old hosting site, do I have to clear them or change them to the elastic IP? –  gideon Dec 11 '12 at 9:19
add comment

Alternatively you can try Amazon's Route53 which will allow you to set a CNAME for your domain and the result will be pretty much instant. There is though a charge for each domain that you use in Route53. (but you can have as many CNAMEs as you like for your subdomains)

You will also need to let your registrar know what are the nameservers that are used by the Route53 service.

share|improve this answer
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.