Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > DNS Service Crapping Out on Lion Server

DNS Service Crapping Out on Lion Server
Thread Tools
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Apr 27, 2013, 08:22 PM
 
Got a Lion Server running DNS with machine records for three computers on the same domain. Two are local, the other is a web server hosted elsewhere.

Its been running fine for years but all of a sudden it seems like DNS queries are not being answered. The server can't even successfully answer itself. The DNS forwarders seem to be working but all the local entries are failing.
I'm hoping its also the root cause of an issue I'm having with the OD database on this Mac.

The service says its running, it starts and stops happily enough and all the zone settings look fine. Any ideas?
I have plenty of more important things to do, if only I could bring myself to do them....
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Apr 28, 2013, 07:32 AM
 
A bad zone file will cause this, have you tried examining each zone file and making necessary corrections?
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Apr 28, 2013, 07:51 AM
 
Can't say I have any experience with raw zone files. Are they just plain text and easy to decipher? I did wonder about just deleting the lot and recreating it from scratch. There is only a handful of entries but would that refresh the zone file?
I have plenty of more important things to do, if only I could bring myself to do them....
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Apr 28, 2013, 07:54 AM
 
And now it seems to be working. Odd. Never even got to the zone files. Thanks anyway.

I have a feeling it was a dodgy nameserver record which I corrected yesterday but hadn't quite 'taken' straight away.
I have plenty of more important things to do, if only I could bring myself to do them....
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Apr 28, 2013, 07:57 AM
 
Nameserver records are written to zone files - zone files are domain configuration files. I'm glad you figured out your problem!
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
Apr 28, 2013, 04:52 PM
 
Sadly it hasn't resurrected my OD DB...
I have plenty of more important things to do, if only I could bring myself to do them....
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
May 1, 2013, 06:58 AM
 
I managed to resurrect the OD DB from a clone I made from a TM backup. Phew!
I have plenty of more important things to do, if only I could bring myself to do them....
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 1, 2013, 07:01 AM
 
Originally Posted by Waragainstsleep View Post
I managed to resurrect the OD DB from a clone I made from a TM backup. Phew!

I would suggest making your own backups using slapcat. You could use a script like this for this purpose:

Code:
#!/bin/sh LDAPBK=ldap-$( date +%y%m%d-%H%M ).ldif BACKUPDIR=/path/to/backup/dir /usr/sbin/slapcat -b "dc=yourdomain,dc=com" -l $BACKUPDIR/$LDAPBK bzip2 -9 $BACKUPDIR/$LDAPBK
     
Addicted to MacNN
Join Date: Mar 2004
Location: UK
Status: Offline
Reply With Quote
May 1, 2013, 12:54 PM
 
Its a very small directory which gets modified very infrequently. I've never had one go bad on me before so I figured this one would be fine without any extra precautions but I was able to rescue it using only the built in archive & restore features in Server Admin. I have taken a backup now that I have added the new user they needed and will do this periodically in the future.

That script looks handy though, thanks. Mountain Lion does away with Server Admin so I guess it might be very useful if I upgrade the server soon.
I have plenty of more important things to do, if only I could bring myself to do them....
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -4. The time now is 02:03 PM.
All contents of these forums © 1995-2015 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2015, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2