5 Replies Latest reply: Feb 4, 2012 9:59 AM by MrHoffman
chrisn81 Level 1 Level 1 (0 points)
I stopped the DNS service in server admin. When I tried to start it, the system crashed. I could only restart the server.
I couldn't connect to my server with Server Admin after that, so I connected to the local one. I was able to log in into that, everything was there and the DNS service was still stopped. So I started the service, this time it started, but something went wrong. Changeip -checkhostnames showed me that the names didn't match. I tried to change it with changeip but I can't get it to work.

My question is, can I stop DNS, remove all the records in DNS and basically start over? If I use the same name will the other services (OD, AFP, WIKI, etc) continue to work with it like before?

Macbook Pro 13, Mac OS X (10.6.2)
  • 1. Re: Problems after stopping DNS service
    VincensoXFIN Level 1 Level 1 (40 points)
    My experience about DNS problems indicate that if you manage to rebuild the records just the same way, the services should work like before. My DNS went nuts some time ago and I just rebuild it, and all worked again

    First I would recommend you stop all the services if possible, and then configure the DNS, and test it. When it's back up and working like before, with the same names and records, then start up the services one at a time and test them.
  • 2. Re: Problems after stopping DNS service
    bob hope Level 1 Level 1 (110 points)
    Starting and Stopping the DNS Service
    To start DNS service:
    $ sudo serveradmin start dns

    Got me running again.
  • 3. Re: Problems after stopping DNS service
    MrHoffman Level 6 Level 6 (12,455 points)
    This statement is a key detail:

    So I started the service, this time it started, but something went wrong.


    We really need to know what went wrong here. That's probably going to generate some details into the DNS server logs, but it could be something else that's causing the problems here.

    Do you have another box on your LAN that you can promote to at least temporary duty as a DNS server while you fix this? (That's likely the easiest approach. Get a DNS server online on another LAN box that need only know about the busted host, and aim the busted host at it.)

    If you don't and you really want to try the reset (and I'd definitely look for what went wrong here before a low-level reset), you can rename or can edit the underlying and low-level DNS configuration files, but I'd not recommend that approach as a first or second-line technique. (You'd need to have some comfort with the Terminal.app shell environment, with the DNS configuration files and with a shell text editor, as a starting point. That's far from unsurmountable, of course.)
  • 4. Re: Problems after stopping DNS service
    AtzeP Level 1 Level 1 (0 points)

    Some time ago I experienced several DNS service crashes in Lion server 10.7.2 (and also 10.7.3).

     

    This may help:

     

    - Stop DNS service in Server Admin or with shell-command "sudo serveradmin stop dns"

     

    - Open Terminal

     

    - Change to /var/named/

     

    - rename all db.* files to db.*.backup

     

    - Rebuild DNS settings in Server Admin

     

    - Start DNS service in Server Admin or with shell-command "sudo serveradmin start dns"

  • 5. Re: Problems after stopping DNS service
    MrHoffman Level 6 Level 6 (12,455 points)

    Before renaming files (been there, tried that, then ran into problems due to have Snow Leopard Server and Lion Server can re-establish settings), I'd encourage a look at the DNS server logs to see why the server is tipping over.