< Day Day Up > |
Recipe 24.6. Running a Public DNS Server24.6.1 ProblemYou're running mail, web, or other public servers, and you want to control your DNS server yourself. You're tired of waiting on third-party service providers, and why should you pay them for something you can do yourself? You want the flexibility to set up your network however you please—maybe you want to own only a single public routable IP address and put all your servers behind a NAT firewall, or maybe you want to put workstations and internal servers behind NAT and put your public servers outside the firewall. However you elect to set up your network, you want control of the name services. So you're ready to take the plunge and set up your own public DNS server. 24.6.2 SolutionYou need five things:
After these items are in place, see the recipes in the rest of this chapter for configuring either a BIND or djbdns server. 24.6.3 DiscussionA static, routable IP address comes from your Internet service provider. Your name server needs to be registered with your domain name registrar. If you have not already registered a domain name, visit http://icann.org/registrars/accredited-list.html for a list of ICANN-accredited domain name registrars. (This doesn't guarantee that you'll get good service, but they are official.) Figure 24-1 shows what the registration form looks like at Dotster. Figure 24-1. Dotster's domain name registration formA DNS server doesn't need much in the way of hardware or bandwidth. DNS requests are very low-bandwidth; after all, a single UDP packet is all it takes to satisfy a request. Ideally, you'll have enough RAM to keep all zone and cache data in memory. If you run your DNS server on a Linux server without X, and without any other services, something like an old P300 with 128 MB of RAM will handle a couple hundred BIND zones just fine, and many hundreds of djbdns hosts. So, if you were only managing the DNS for the little windbag.net network in this chapter, you could easily piggyback onto a machine running other services. 24.6.4 See Also
|
< Day Day Up > |