Mac OS X Server 10.1: Sample File (named.conf) for Configuring DNS in a NAT Environment

This document provides a sample file used for technical document 106853, "Mac OS X Server 10.1: How to Set Up DNS in a NAT Environment". You should use this information only as instructed in technical document 106853.
This document provides an example address-to-name lookup database file.

Caution: You should be aware that the incorrect configuration of DNS settings can result in serious system issues. Only experienced users should manipulate these settings.

------ Copy Below This Line --------
// This BIND 8.2 Config File for a Mac OS X Server 10.1.x
//
// named.conf file from the Apple Knowledge Base Article Number
//
// [CAUTION: Users should be aware that the incorrect configuration of DNS
// settings can result in serious system issues. It is recommended that only
// experienced users manipulate these settings.

//

// Declares control channels to be used by the rndc utility 
// controls {
//      unix "/var/run/ndc" perm 0600 owner 0 group 0;
//        inet 127.0.0.1 port 54 allow {any; };
// It is recommended that 127.0.0.1 be the only address used
// This also allows non-privileged users on the local host to manage your name server
// };


// Information that you need to provide for this file
//
// Replace the 2 forwarders ip_addr vales with the DNS Server IP addresses 
// provided by your ISP
//
// ip_addr - An IP address in with exactly four elements in dotted-decimal notation
// (example: 192.168.1.2)
//
// If you do not have a NAT gateway or router, comment out the forwarders line
// by using "//" <no quotes>


// Controls global server configuration options and sets defaults for other statements
options {
        directory "/var/named";
        notify no;
        forwarders { ip_addr; ip_addr; };
        statistics-interval 1;
        version "surely you must be joking";        
};

// These entries are not specific to any zone
// They are required by any DNS server

zone "." in {
        type hint;
        file "db.cache";
};

zone "0.0.127.in-addr.arpa" in {
        type master;
        file "db.127.0.0";
};

//
// The following entries are where your zone information is entered
//


// This file contains the host names and their correlating IP addresses.

zone "example.com" in {
        type master;
        file "db.example.com";
};

// This file contains the IP addresses and their correlating reverse lookup.

zone "1.0.10.in-addr.arpa" in {
        type master;
        file "db.10.0.1";
};

------ Copy Above This Line --------

Published Date: Oct 10, 2016