Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used to use linode and this is what I had in db file:

ttl 86400 IN SOA (
86400 ) IN NS IN NS IN A
www IN A
* IN A

Then on my domain registrar I modified the dns of my domain with the linode ones. I have no idea what to use for my primary and secondary dns on ec2, doesn't ec2 has dns like linode used to offer? What should I do?

share|improve this question

Amazon offers a service called Route 53 to provide DNS service - this may be the simplest option for you, but it's not free; $1 per zone per month.

Alternatively, there are a number of services via other vendors that you could purchase, or host the DNS directly on your server itself.

share|improve this answer
Thanks for your answer. How would I host the DNS directly? With bind? Do you have any resource on that please? – Robert Donheal Aug 19 '11 at 3:09
@Robert Look to configure BIND as "authoritative only", set up your zones with the BIND server as the SOA and NS, and configure glue records with your domain registration. Do some research on these, and if you have specific questions or issues when working through it, post a question :). – Shane Madden Aug 19 '11 at 5:03

Ec2 instances may only use one IP address. This is a limitation for setting up master and slave servers on the same instance. I was trying to set up a DNS server on my own ec2 instance and I quit in favor to Amazon's Route 53. It offers this service at a cost which I consider quite reasonable.

If you still want to use BIND, consider installing webmin to simplify the task.

share|improve this answer

Your Answer


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.