I want to use my internet connection to host two personal websites (two different domains). I would also like to host mail for these domains.

This requires hosting my own name server. In the nameservers configuration section on my registrar's website, it requires two name servers. Probably for reliability?

I have previously used zoneedit.com, and they provided me with two nameservers but I would like to host it myself, save myself some coin, and learn how to configure bind for experience.

I only have one internet connection, and only have the ability to host one nameserver. What are you supposed to do with the second name server?

link|improve this question
8  
I'd have to disagree with "Belongs on Superuser" on this one. We're talking about DNS Servers here. Whether they're for a personal domain name or not, they're servers and fulfilling a server role. – Evan Anderson Nov 8 '09 at 2:58
3  
"Server Fault is for system administrators and IT professionals, people who manage or maintain computers in a professional capacity." "Two personal websites" does not constitute "in a professional capacity". – womble Nov 8 '09 at 3:40
13  
@womble Your reasoning is terrible; you might as well say that you can't ask about personal programming projects on stackoverflow. The real criterion for the right place to post is whether the topic is being addressed to the right audience, and it's hard to argue that nameserver setup questions should be directed to superuser. – phoebus Nov 8 '09 at 4:51
2  
When it could go either way, I throw the tie to the person asking the question. It's better to encourage people to come here than to beat them up and send them away – Matt Simmons Nov 8 '09 at 4:55
1  
@phoebus: Stack overflow doesn't have a "professional programming only" focus, which makes your argument ludicrous. If you think Serverfault's focus is wrong, then it's not me you want to be arguing with, since I don't run the site. I'm just following the guidelines currently in place. – womble Nov 8 '09 at 6:05
show 3 more comments
feedback

7 Answers

The requirement to run two nameservers comes from §4.1 of RFC 1034, and is indeed for redundancy.

There are numerous providers who will offer you very cheap "secondary DNS" service where they transfer the zone file from your primary server using AXFR. For example, in the UK we have a well-known provider who'll do secondary service for 50 domains for just £2.30 a month (just over 3 bucks).

This will give you the ability to manage and run the zone yourself, but still give you the resiliency you need.

link|improve this answer
feedback

The conventional wisdom is to have two nameservers for redundancy. Ideally, this keeps downstream name servers pointed in the right place even if, say, your colo is unreachable. If you are hosting these websites from your home, your weak link will probably be your connection or power, not the machines themselves (assuming you are using servers, and not repurposed desktops). Also, since you are hosting from your home, I'm assuming that high availability is not a requirement.

However, you need to make absolutely sure that you have a static IP address, as you will not be able to register a dynamic IP with the root servers. This means that, if your IP changes, they will be pointing everyone to the wrong place to look for the correct IP for your machines.

link|improve this answer
Another point to make here in the way of security: if you attempt to host DNS with a non-static IP address, and another savvy user later acquires your prior IP address, they can receive the lookup requests for your web site, serve up different results, and send visitors to a different place. Always go with a 100% static IP. – Brian Cline Nov 8 '09 at 2:36
I do have a static ip address – Mike Nov 8 '09 at 5:05
feedback

I have been using EveryDNS for my primary host. My domain is not setup this way, but they do offer secondary service for free. This would allow you to get a redundant nameserver on a different network and still setup BIND on your own.

link|improve this answer
1  
+1 Works wonders... I don't see the point in hosting the name servers yourself at all. I migrated from free Zoneedit+DynDNS to EveryDNS recently and am very pleased, so much so I immediately donated and intend to continue doing on a yearly basis. – Oskar Duveborn Nov 8 '09 at 15:14
feedback

Many times your domain registar will also offer DNS services included with the DNS registeration. So the domains I have registered at GoDaddy and Network solutions both use their DNS and it doesn't cost any extra.

link|improve this answer
feedback

Plenty of domain registrars do NOT require 2 DNS servers (last I checked - for example NameBargain.com). So if your registrar requires this, shop around.

If you have a static IP address, and you are going to host everything (web, DNS, etc.) on the same single IP address / connection/ box anyway, then the RFC requirement for two DNS servers is really overkill. If your server or connection goes down, then it really doesn't matter that you have a functional DNS server somewhere else.

link|improve this answer
feedback

DNS requires a MINIMUM of two servers. You can have as many as 13 unique IP addresses with DNS servers for your domains, and if you run an anycast network, you can put hundreds of DNS servers behind each address.

But for a small site it is best to start with two DNS servers on two differen networks, and work up from there.

If you go to Google and use the search string "secondary dns" free you will find a number of organizations offering free secondary or backup DNS. They may also want you to provide free secondary DNS for them, kind of you scratch my back and I'll scratch yours.

It is a good idea to find three or more such arrangements because circumstances change over time.

link|improve this answer
feedback

XName provides free DNS hosting. You would be able to use any one of their name servers for your secondary server.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown