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 registered a domain with registro.br. It's a Brazilian domain, and they do things differently.

Usually, I would register a domain and the registrar would provide me with a panel to configure options for my domain. Registro.br doesn't do this. You simply point your domain to the DNS details from your host.

That's fine. Only now I'm trying to host my own site on Amazon EC2. I have no host that can give me access to CNAME records and such. I have an instance and an elastic IP.

How can I create sub-domains and CNAME records in this case?

My intention is to have mysubdomain.mydomain.com.br point to xxx.xxx.xxx.xxx:8080/site1 and mysubdomain2.mydomain.com.br point to xxx.xxx.xxx.xxx:8080/site2

share|improve this question
3  
Its unclear, but are you trying to ask how to setup a DNS server? What do you mean 'domain without DNS' thats pretty much a contradiction in terms. –  polynomial Sep 17 '11 at 20:08
add comment

1 Answer

up vote 6 down vote accepted

If I'm reading you right then you need to purchase a DNS service from someone. Point the NS records at registro.br to the name servers for your DNS service then use that to set up the A and CNAME records that point to your EC2 instance.

share|improve this answer
    
It seems that you need to run your own DNS servers, and you need static IPs for that. If "elastic IP" means "non-static IP", then you can't do that for yourself, and as Iain says, you'll need to rent it off someone. –  MadHatter Sep 17 '11 at 20:13
    
Elastic IPs are static. –  Iain Sep 17 '11 at 20:16
1  
It took a few minutes, but lain is right. A few years back, most registers usually just setup NS records - you have to have a different provider to host DNS. Looks like in this case, this is what the poster needs to do. –  Rilindo Sep 17 '11 at 20:21
    
Thanks, Iain; it wasn't a term I'd come across before. Then the OP can run his own DNS server if he wants to, but as you said, he must either run it or rent it since the registrar isn't providing it. –  MadHatter Sep 18 '11 at 13:38
    
@MadHatter: EC2 Elastic IP Address: Internet routable IP address allocated to an AWS EC2 account. Unlike a standard EC2 Public IP Address, Elastic IP Addresses are allocated to accounts and can be remapped to other instances when desired. –  Iain Sep 18 '11 at 20:06
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.