Zentyal Forum, Linux Small Business Server

Zentyal Server => Directory and Authentication => Topic started by: mambojuice on February 06, 2019, 05:05:43 pm

Title: DNS won't start, AD seems to be broken
Post by: mambojuice on February 06, 2019, 05:05:43 pm
My server rebooted unexpectedly due to a power outage that lasted longer than my UPS battery. Now the DNS module won't start and I'm in trouble!

/var/log/zentyal/zentyal.log shows that the services are trying to start on boot, but bind9 is throwing an error:

Code: [Select]
samba_dlz: started for DN DC=mydomain,DC=local
samba_dlz: starting configure
zone mydomain.local/NONE: has no NS records
samba_dlz: failed to configure zone 'mydomain.local'
loading configuration: bad zone

Any help would be greatly appreciated!
Title: Re: DNS won't start, AD seems to be broken
Post by: mambojuice on February 06, 2019, 07:51:28 pm
I managed to get things hobbling along well enough to get my users back up and running until I can build a new server and transfer all the roles and services over.

By rebooting into rescue mode and doing the following:

1. Disable Zentyal services
Code: [Select]
systemctl disable zentyal
2. Edit /etc/samba/smb.conf with the following changes:
Comment out the line
Code: [Select]
server services = -dnsAdd the line
Code: [Select]
dns forwarders = 8.8.8.8 8.8.4.4 for Google public DNS or replace with your internal upstream DNS

3. Run the following command to migrate from bind9 to internal samba DNS:
Code: [Select]
samba_upgradedns --dns-backend=SAMBA_INTERNAL --verbose
4. Start services
Code: [Select]
systemctl start smbd
systemctl start samba-ad-dc

5. In my case I was also running a DHCP server, so that needs to be manually started as well
Code: [Select]
systemctl start ise-dhcp-server
Hopefully this helps someone else in the future!