Find the answer to your Linux question:
Results 1 to 3 of 3
Like Tree2Likes
  • 2 Post By abarclay
Hi Kindly recommend me one how-to to create name server. I just found some tutorials. they have only one name server setup. ns1.server.com I need ns1. and ns2. Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66

    DNS Server setup


    Hi

    Kindly recommend me one how-to to create name server.
    I just found some tutorials. they have only one name server setup.

    ns1.server.com

    I need ns1. and ns2.

    Thanks

  2. #2
    Just Joined!
    Join Date
    Dec 2009
    Location
    California
    Posts
    98
    On the primary name server, create /etc/named.conf
    ---
    Code:
    options {
            directory "/var/named";
            pid-file "/var/named/named.pid";
    };
    
    include "/etc/rndc.key";
    
    zone "." {
            type hint;
            file "rootservers.cache";
    };
    
    zone "unixpeople.com" {
            type master;
            file "db.unixpeople";
    };
    ---
    You will then have to create the contents of the two data files, /var/named/rootservers.cache and /var/named/db.unixpeople.
    The rootservers.cache file can be found easily by google. For example, here:
    http://www.internic.net/zones/named.root

    The db.unixpeople zone file would look like this:
    ---
    Code:
    $TTL 600
    unixpeople.com. IN SOA woody.unixpeople.com. hostmaster.unixpeople.com. (
            20111203 ; serial
            14400      ; refresh
            900          ; retry (15 minutes)
            5184000   ; expire (8 weeks 4 days)
            3600       ; minimum (1 hour)
            )
                 NS      ns1.unixpeople.ca.
                 NS      woody.unixpeople.com.
                 NS      trinity.trinnet.net.
                 MX      10 mail.unixpeople.com.
    ---
    On the secondary servers, (ns1.unixpeople.ca and trinity.trinnet.net), you would put an entry in the named.conf for each zone for which the server is a secondary:
    ---
    Code:
    zone "unixpeople.com" {
            type slave;
            masters { 168.144.196.83; };
            file "db.unixpeople";
    };
    ---
    Last edited by abarclay; 12-03-2011 at 10:08 PM. Reason: formatting
    agriz and bmackin1 like this.

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    66
    Thank you!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •