Setting up a nameserver for your public domain

Setting up a nameserver for a public domain works the same way as setting up a DNS server for an internal hostname, just with a few additional parts that we'll want to make sure are in a good state.

How to do it...

Let's set up a nameserver for a public domain:

  1. Set up a properly configured SOA record:
    example.org.  IN  SOA  ns1.example.org. admin.example.org. (
     2015081401
     28800
     3600
     604800 
     38400
    ) 
  2. Set up a record for NS hosts:
    Ns1    IN      A       192.168.1.1
  3. Set up glue records:
    $ORIGIN example.org
           IN      NS      ns1.example.org.
    Ns1    IN      A       192.168.1.1

How it works…

The first step is to configure the start of authority (SOA) for your domain. The SOA provides basic information about the zone itself. It contains a number of fields, ...

Get Linux Networking Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.