Recipe 24.6. Running a Public DNS Server

 < Day Day Up > 

24.6.1 Problem

You'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 Solution

You need five things:

  • A static, public, routable IP address

  • A registered name server

  • A permanent Internet connection

  • An ISP account that permits running servers

  • Your actual server

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 Discussion

A 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 form


A 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

  • djbdns documentation (http://cr.yp.to/djbdns.html)

  • BIND 9 Administrator Reference Manual (http://www.bind9.net/Bv9ARM.html)

     < Day Day Up > 


    Linux Cookbook
    Linux Cookbook
    ISBN: 0596006403
    EAN: 2147483647
    Year: 2004
    Pages: 434

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net