Zentyal Forum, Linux Small Business Server
Zentyal Server => Directory and Authentication => Topic started 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:
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!
-
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
systemctl disable zentyal
2. Edit /etc/samba/smb.conf with the following changes:
Comment out the line server services = -dns
Add the line 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:
samba_upgradedns --dns-backend=SAMBA_INTERNAL --verbose
4. Start services
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
systemctl start ise-dhcp-server
Hopefully this helps someone else in the future!