Follow the how to instructions below to set up a Non Authoritative DNS Server on Mac OS X 10.2 Jaguar server & client for a local intranet using the 10.0.1.x IP address range.
Click here to set up a Authoritative DNS server. This only works if you have a static a IP address.
With the DNS Server's IP address set to 10.0.1.2
Router's IP 10.0.1.1
For this set up we will presume your domain is called 'example.com'
The DNS Server's name will be server.example.com.
And the mail server will be mail.example.com. (10.0.1.3) (mx record is on the last line on db.example.com)
Other machines will be....
host4.example.com. will have an IP address of 10.0.1.4
host5.example.com. will have an IP address of 10.0.1.5
etc, etc
To name individual machines change host4/5/6 etc to whatever you want to call the Mac/PC with corresponding IP address.
Do you have a dynamic or semi static IP address?
If so make life easy and get yourself a Fully Qualified Domain Name (fqdn) Sign up for free here
Tools Used :Before you start make back up copies of :
named.conf you will find this file in /private/etc (duplicate named.conf and rename file named.conf.bak)
Also back up all files found in /private/var/named (make a folder called "bak" and copy all (3) original files into folder)
1. Open Pseudo
here
2. Drag and drop Path Finder onto Pseudo's open window, this will open Path Finder as root.
3. In Path Finder click on the Hard Drive (the one where DNS is to be installed) icon on left then go to View on menu bar and go down to ShowInvisible Items
4. Go to /private/etc
5. Find named.conf and rename it to named.conf.bak
6. Go to /private/var/named and make new folder called bak (or whatever you want to call you back up folder), copy the 3 items to that folder.
7. Drag and drop BBEdit (or your favorite text editor) over Pseudo, again this opens it as root
8. Download and unstuff the DNS server files.
9. Open named.conf with BBEdit.
10. Use cmd F to open find >>> type in top box example.com and in box below type whatever domain name you use >>> click Replace All (it will find 1 to replace) then save file to /private/etc
11. With BBEdit open db.10.0.1 >>> again cmd F>>> type in top box example.com in top box your domain name in bottom box >>> click Replace All (should change 257) save file to /private/var/named
12. Open db.example.com >>> cmd F>>> type in top box example.com in top box your domain name in bottom box >>> click Replace All (should change 261) save file to /private/var/named
(remember to change the name of the db file to your domain name, so if you're called test.net change the file name from db.example.com to db.test.net)
13. Now open the Terminal and at prompt type this in
sudo cp /var/named/named.ca /var/named/db.cache (press enter it will ask for a admin pw press enter again) then type.
sudo cp /var/named/named.local /var/named/db.127.0.0 (press enter).
14. Client only Open /private/etc/hostconfig >>> and change.
DNSSERVER=-NO-
to
DNSSERVER=-YES-
or add it if it's not there.
Save file.
14a Server users enable DNS in Server Settings
15. Open Disk Utility and Repair Permissions.
16. Open System Prefs Network make new location called Local DNS.
17. Put 10.0.1.2 in DNS Severs and your domain name in Search Domains, with local on a new line below. Do this on all client machines.
18. Reboot Server
To name individual machines change host4/5/6 etc to whatever you want to call the Mac/PC with corresponding IP. Make sure you change info on both files db.example.com and db.10.0.1 (you find them here /private/etc/var/named)