Wednesday, October 7, 2009

Fixing 0.0.10.in-addr.arpa in Mac OS X Server Admin

Okay, so you hit save, and for those of you who have the problem and have read about it, you know what I mean.

Here is what I have done to "Fix" the issue. I don't claim it to be the definitive answer. But it worked for me. First off, Forget using the DNS settings in Server Admin. Making your settings in there Still Sucks even in 10.6. For a company that has it all figured out you would think they could make a program for beginners to use since all us hard cores would just go write it out by hand anyway.

Well they did, sort-of make it easy if you understand DNS you can use the Server Admin to set it up pretty well, but it is still borked, even in 10.6. For Me, starting out on 10.4 Server years ago. DNS was a lion to tame and I had to do it quick. When I setup on a 10.5 Server I Migrated Mail Manually. Everything else was setup clean and of course the DNS was a lot easier to work with than 10.4 Server, but it's just not there yet. Some visual tutorials on setting up a DNS would be keen, but then the trainers might be out of a job. I digress.

I use su to login as root, but be careful with this as you can mess things up if you don't know what these commands are. Lets Get started, and I'll sudo the following commands

First copy the file so you have a backup if you make a mess

sudo cp /etc/dns/publicView.conf.apple /etc/dns/publicView.conf.apple.backup


sudo nano /etc/dns/publicView.conf.apple
password: "enter your admin password"

This opens a simple text editor called nano in terminal. Using the arrows on your keyboard scroll your cursor and place it in front of the following entry.

(If you are not familiar with nano, get to know it first with man nano)

zone "0.0.10.in-addr.arpa." {
type master;
file "db.0.0.10.in-addr.arpa.";
allow-transfer {none;};
allow-update {none;};
};

Hitting the "Ctrl-K" key combo in front of each line will cut the text

once you have removed the zone entry, Ctrl-O will write out the changes to the file
and Ctrl-X closes the nano prompt.

Hint if you skip Ctrl-O and go strait to Ctrl-X Nano will ask you to answer Y for YES or N for No to save changes

N closes the nano prompt without saving
Y prompts you to verify the filename so ENTER writes the changes to the file and closes the prompt


Allright

sudo serveradmin stop dns

followed by

sudo serveradmin start dns

and you should not see the 0.0.10.in-addr.arpa zone entry in Server Admin GUI any longer.

Have fun and don't forget to backup before you make changes.

3 comments:

Paul D said...

Thank you!!! This got rid of a long time nuisance.

Anonymous said...

F**KING Brilliant. You are KING!
Thanks. A quick google for this problem took me to a couple of sites but yours was by far the most concise but precise. Kudos.

Candide said...

It worked, thanks a lot!