Setup Master-Slave DNS Server Using “Bind” Tools in RHEL/CentOS 6.5

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Babin Lonston

I’m Working as a System Administrator for last 10 year’s with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

79 Responses

  1. Ninoslav says:

    Hi Babin,

    All tho this is a good tutorial, i need to point out that your configuration of reverse zone is wrong, and that the check for it doesn’t work.

    And that is because reverse zones there is no need for any type of record beside PTR records, and that since we defined reverse zone as 0.168.192.in-addr.arpa we should check that when checking configuration.

    The reverse zone file for this tutorial should be defined as:

    $TTL 1D
    @ IN SOA masterdns.tecmintlocal.com root.tecmintlocal.com (
    2017091402 ; serial
    1D ; refresh
    1H ; retry
    1W ; expire
    3H ) ; minimum

    ; Name server's
    @ IN NS masterdns.tecmintlocal.com
    @ IN NS slavedns.tecmintlocal.com

    ;Hosts in Domain
    200 IN PTR masterdns.tecmintlocal.com
    201 IN PTR slavedns.tecmintlocal.com

    And the check for zone should be:

    named-checkzone 0.168.192.in-addr.arpa /var/named//var/named/tecmintlocal.rev.zone

    I hope that my comment helps someone out.

    Cheers.

    Ninoslav.

  2. Howard Rifkind says:

    Thank you for all of the above, very helpful. I only have one physical machine so is it O.K. if I don’t configure a slave machine configuration? Thanks

  3. Azamatjon says:

    I didn’t understand the section for reverse zone file in /var/named.com zone”…..” that part

    please explain me what to write there

  4. Shrikant says:

    Typo at “Real Also: Setup DNS Cache Server in Ubuntu”

    Correct it to ‘Read’ :)

  5. Ishmael says:

    Good illustration but things as Serial number where do they come from are they important If I leave 0, default

    • @IShmael,

      You can’t leave it 0 instead you need to start from 00 which represent the date. If we are about to add new entry it’s good to increase the serial number by an incremental method.

  6. saeed Tehrani says:

    has no address records (A or AAAA) , I had the same problem for this reason I added
    8 @ IN NS ns1.domain.com.
    9 @ IN NS ns2.domain.com.
    10 @ IN PTR domain.com.
    these following lines
    11 @ IN A 192.168.1.140
    12 @ IN A 192.168.1.150

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *