DNS: Import Bind zones in Mac OS X Server

Hi all,
currently I'm about to setup a new Mac OS X 10.5 based web server. Everything seems to work better than expected. Only importing bind zones does not work at all. After reading the documentation and some threads here, I figured out Apple changed the zone files format. It always possible to import "old" zone files coming from any other DNS, but if you do, they will not be displayed in the new Server Admin and you are not able to edit your zones there. Furthermore it is not clear whether a Bind zone file imported earlier can get in conflict with an identical zone defined later by mistake.
So I searched for the new zone files, created by the Server Admin app and found them in "/var/named/zones/". They are more user-readable than standard Bind zones and include a GUID. Additonaly the naming conventions changed to "db.<stld>.<tld>.zone.apple" and a dummy bind zone file in "/var/named/" is created too, pointing to the corresponding new zone file.
Now my question (Yes, I know, long and boring intro) ...
*Is there a way or a hidden app to convert standard bind zones to the new Apple format? I read something about an auto migrate function when upgrading from 10.4 to 10.5 Server. So it seems to be possible.*
Any tipps?
Thanks a lot,
Wolfgang Neikes
btw.: *Hey, Apple, please add a simple import button to the DNS Admin GUI! You know how.*

Well, I'm being hit by something very similar, so I'll follow up to your post.
But I think you have two completely separate issues involved here, so I'm going to make two comment areas
Comment 1 : The change from files to GUI for Server-Admin-Managed-Zones
The content of /var/named/zones is variable, generated by the Server Admin program. Don't touch any of the files in there! They appear to be standard BIND files, but they're in a different location because that's how the GUI communicates with BIND.
You can track back back exactly what happens following the named.conf file: it's actually working exactly as BIND does on other OS's, it just uses some include file redirection to make things manageable by the GUI.
/etc/named.conf contains :
include "/etc/dns/publicView.conf.apple";
This file contains a list of all the zones you have configured in the gui. For example (if I were apple.com) :
zone "apple.com." {
type master;
file "db.apple.com.";
allow-transfer {any;};
allow-update {none;};
The default directory is /var/named, so if you look at /var/named/db.apple.com., you can see another include line:
$INCLUDE /var/named/zones/db.apple.com.zone.apple
and that file, finally, contains the BIND SOA file you're used to (I couldn't see anything in it that's unusual)
Meaning, there's no "apple" format, and anything you put in /var/named/zones would just get overwritten by the GUI anyways, so don't do that
Comment 2:
So, according to page 63 of the Networking Services Admin manual for 10.5, you can do everything you used to do by adding your own entries into /etc/named.conf.
OK, I add the following:
(Note that everything has to be in a view because that's how BIND works
view "everyone" {
allow-recursion {any;};
zone "not-apple.com" {
type master;
file "not-apple.com.";
allow-update { none; };
allow-transfer { any; };
OK, fine, when I turn the logging on to "Debug" mode I can see it loading my domain like all the others. Yay!
But, back to something you said: it doesn't work!
Sure, it SAYS it loaded the file, but when I test it with dig:
# dig soa not-apple.com @localhost +norecurse
; <<>> DiG 9.4.1-P1 <<>> soa not-apple.com @localhost +norecurse
; (3 servers found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17216
;; flags: qr ra; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0
;; QUESTION SECTION:
;not-apple.com. IN SOA
;; AUTHORITY SECTION:
com. 171983 IN NS I.GTLD-SERVERS.NET.
com. 171983 IN NS D.GTLD-SERVERS.NET.
(etc.)
Basically, it denies knowing anything about not-apple.com, despite it having "successfully" loaded it in the log contents.
THIS *****: I would desperately like to close down an old server of mine (without having to manually add every domain and just re-use the existing files) but I'm finding that I'm unable to do so because Leopard doesn't work according to the documentation

Similar Messages

  • After 10 years of Mac OS X server DNS GUI wrapper still breaking configs

    WHY?
    Against my better judgment I used the Server Admin's DNS tool to add a zone. Next thing I know it's going and added random data from the new zone to most if not all my zone records. It's changed the SOA for all my zones to some random concatenation of the new zone's data, it's concatenated A records to NS records. I had to go in and manually repair ALL of my records.
    What's so hard about creating a functional BIND wrapper?
    Lesson Learned - SAVE YOURSELF HOURS OF UNNECESSARY FRUSTRATION, NEVER USE SERVER ADMIN'S DNS TOOL, NOT EVEN TO DO SOMETHING SIMPLE LIKE ADD A NEW ZONE RECORD.
    **** I wouldn't use it at all if Apple hadn't removed the means to turn the **** server on and off from the command line.

    Sure there are a world full of solutions out there but I've already invested time, money, and a knowledge of how things work on OS X. Seems kind of silly for you to say that I should throw the baby out with the bath water and just find the "solution that works". I have no problems with any other service I'm running, with Apache and Postfix running smoothly, since they have the first time they were configured back in 2002.
    BIND on Mac OS X server works just fine when the Apple specific components and changes aren't thrown into the mix. I've been running it this way since OS X Server was released (**** I even ran BIND on "Client" for a while without any issues back before server was available) and I've mostly enjoyed 100% uptime despite those times when I was naive to think "Apple must have fixed ServerAdmin DNS. Let me just make one minor change using the GUI tool."
    Is it too much for me to ask that if they can't make the tool work right then, for the love of the great and holy Admin, don't mess with it at all? Seriously if it isn't broken don't fix it. I'll happily manually config from the command line, lovingly reseting my serial numbers for each edit, the one time every couple of year that I might need to do so. Instead of releasing a tool thats only going to break your configs, don't continue to tease us with ease of use GUI apps.

  • Not clear about dns service for new Mac 10.4 server

    Due to low budget, I am given the task to convert a powermac g4 into a Mac 10.4 server. I have already installed it as a stand alone master but will promote it to directory master as soon as I configure proper dns setup.
    Now my westell router shows that the dns is 192.168.1.1 and the domain name as myhomwestell.com, does that mean my zone name has to be westell.com? Can having both dns service conflict with each other or is it fine?

    http://discussions.apple.com/message.jspa?messageID=5409254#5409254
    lookup my posts on DNS setup to help you about. Please mention if you want to go full a Fully Qualified Domain Name Setup or just a local setup . Do you dispose of a fixed public IP address as well ?

  • Can I import iWork from my Mac, which has Snow Leopard, to my MacBook Air, which has Mountain Lion?

    Can I import iWork from my Mac, which has Snow Leopard, to my MacBook Air, which has Mountain Lion?
    I would appreciate any advice on the intricacies of operating with Snow Leopard on my main computer and Mountain Lion on my MacBook Air.

    I'm not sure there are any intricacies except you can't use iCloud to keep the two things synced. It would be mostly contacts, Safari bookmarks, Calendars, notes, etc.
    Also, iCloud allows saving iWork documents in the Cloud, so you can access them on both systems. That would not be available for the old Mac.
    The two OSes are similar enough that it wouldn't be too difficult to work between the two, but there will be differences in using the Finder (contextual menu changes)
    I thought I would have more, but I've been off Snow Leopard for so long now, I'll leave this for someone who is currently operating like that or recently switch to Mountain Lion from SL.

  • I viewed photos  from the memory card of my camera without importing them to my mac air but on the next day I realized that I Lost my memory card. Is there a chance that my mac air took a back up of these photos ? Please say yes and guide me pls

    I viewed photos  from the memory card of my camera without importing them to my mac air but on the next day I realized that I Lost my memory card. Is there a chance that my mac air took a back up of these photos ? Please say yes and guide me through the steps to recover them. I need URGENT HELP please

    If you didn't import them to Photos or copy them to the hard drive there will be no way to recover them. 
    How did you view them?

  • Hi Guys, I have a problem with Importing Pictures onto my Mac mini with Lion installed by using a Card Reader, What is the problem here so I can get Pictures onto my Computer. ,

    Hi Guys,
    I have a problem with Importing Pictures onto my Mac mini with Lion installed by using a Card Reader,
    What is the problem here so I can get Pictures onto my Computer. ,

    Hi Noob Søren
    There are a few things that are confusing in your question.
    As far as I know, you dont have to install Time Machine on this OS as it is already installed for you. You only need to connect a hard drive to your computer via firewire or usb, click on the Time Machine icon, Open Time Machine Preference in the drop down menu and select a disk: your connected hard drive.
    You can of course reformat this connected device, partition it into a few volumes to organise data if you so wish.
    I find it strange that your mac's hard drive is divided into two volumes... perhaps this was created through bootcamp?
    You can access the configuration of your hd through Applications/Utilities/Disk Utilities.
    Clicking on one of the icons on the right hand panel will bring the details of the contents of your hardDrive and volumes. From there you can decide to erase a partition, reformat etc....
    If your hd contains more than one volume, and one of them is empty, you could decide to remove it. Back up all your important data before doing so.
    Hope this helps
    WN

  • Import my addresses into mac mail via .csv file

    i would like to import my addresses into mac mail.
    i have my yahoo addresses saved on my desktp as a .csv file. can you tell me how to import these
    thank you

    You cannot import addresses into Mail. You must import them into Address Book for them to be available in Mail. Open Address Book, then Help > Address Book Help, and read the “Importing contacts into Address Book” article to see how this works.

  • How to Import .pst files in Mac mail?

    I am finding a solution to import .pst files in Mac mail.
    In other and simpler words, I am tryng to transfer emails from ms outlook 2007 that supports .pst files to mac mail of mac operating system.
    Also it will very helpful if I can get solution for transferring contacts and calender work along with the above asked question.
    Eagerly waiting for the solutions.
    Thanks

    do it with the help of import-export wizard. Here goes the steps for youhttp://www.trickyways.com/2010/08/how-to-transfer-emails-from-outlook-to-apple-m
    ail/
    Your best move would be if you search for your problem on some search engine
    that you use.
    Typing "Convert
    Pst To Mac Mail" will land you in several solution.
    Or you can simply visit apple online store for this problem have a look:
    https://itunes.apple.com/in/app/pst-con
    ... 1009?mt=12
    Hope this helps

  • Want to import jpeg file from mac to pages on mac

    want to import jpeg file from mac to pages on mac

    Two different macs? 
    Use AirDrop to transfer the file.  Then drag and drop it inot the Pages document.
    Same mac? 
    Drag and drop.

  • Re: How to Import .CSV file using Mac Desktop Manager 1.0.4?

    I am at a total loss.  I have exported my existing address book of 3100 contacts and it can be in any format -  csv or whatever.
     It is from an app called NowContcat and up to date.  You would not know it.
    Anyway all I want to do is import to my BB Bold 9000 running the latest upgrades.
    Can anyone help? - I have tried to read all of the posts but there does not seem to be anything i the manual or otherwise.
    SDK

    Hey kempyau,
    To clarify your issue, are you looking to take the csv file of 3100 contacts and synchronize it with your BlackBerry?
    You can import the contacts in Mac Address Book and then use BlackBerry Desktop Software to synchronize the contacts.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • How to import a movie into mac

    When I played a dvd from MAC and it always detroyed my DVD after a few times.  Is there a way to import a movie into MAC?
    Thanks.
    Yuyuki

      If the drive is physically destroying DVD's you need to have it repaired. A DVD should play indefinitely for all intents and purposes.
    There should not be any physical contact between the player and the disk.
    If the system is out of warranty and you don't want to pay to have it repaired there are many 3rd party USB and/ FireWire DVD drives that you can purchase. for a reasonable price.

  • How do I import pictures from my mac to my iphone 5

    How do I import pictures from my mac to my iphone 5???????

    Connect to two devices with the supplied lightning/USB cable and ITunes will launch on your Mac .
    In the left hand pane your iPhone name will show up under devices.
    Click on this to open the IPhone control panel in the main iTunes browser window.
    At the top you will see a series of radio buttons
    Summary Info Apps Music Movies TV Shows Books Photos
    Click on Photos
    Put tick on sync photos with iPhoto (Default you can also choose Aperture if you buy this)
    In the panel below you can choose to sync All libraries or Selected events- this opens an inspector panel displaying the folders as they appear in iPhoto (Aperture) with tick boxes to select differing collections/images
    Now click the apply button in the bottom right corner and your choosen images sync with to your iPhone.

  • Can I import photos from my mac to my new ipad?

    I don't now how to import photos from my mac to ipad. The video tutorial says to use itunes, but I can't figure out how to do it.

    This article may be more helpful http://support.apple.com/kb/HT4236 - if anything isn't clear then just ask

  • Importing HD to my mac

    Hey everyone,
    I am wondering if anyone has advice about how to import HDTV to the mac. I know that the new Quicktime has h.264 which I can encode hd stuff with, but what can I use to get it into the computer.
    I have a dvr with a DVI-out.
    So what would I need to hook it into my mac... is there a special converter or something I can buy at an electronics store?
    Thanks for any advice,
    Ryan

    I don't think that capturing from DVI will work out too well. If your cable box has a Firewire connector you can record the HD straight onto your Mac in real time, using AVCBrowser Enhanced:
    http://home.comcast.net/~macpvr/avcbrowser.html

  • How do I import DVD to IMovie? What is the best way to import DVD to a Mac?

    Hi everyone!
    I need some help, so here are my questions.
    How do I import DVD to IMovie? What is the best way to import DVDs to a Mac?
    I would like to keep the original quality from the DVD.
    Thx.

    You need to convert the VOB files in the TS-Folder of the DVD back to DV which iMovie is designed to handle. For that you need mpegStreamclip:
    http://www.apple.com/downloads/macosx/video/mpegstreamclip.html
    which is free, but you must also have the  Apple mpeg2 plugin :
    http://www.apple.com/quicktime/mpeg2/
    which is a mere $20.
    Another possibility is to use DVDxDV:
    http://www.dvdxdv.com/NewFolderLookSite/Products/DVDxDV.overview.htm
    which costs $25.
    For the benefit of others who may read this thread:
    Obviously the foregoing only applies to DVDs you have made yourself, or other home-made DVDs that have been given to you. It will NOT work on copy-protected commercial DVDs, which in any case would be illegal.

Maybe you are looking for