TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
4.25k stars 418 forks source link

add option to auto-start service #193

Closed mrjones2014 closed 3 years ago

mrjones2014 commented 3 years ago

Why is there not an option to just automatically start the service? if I ever restart, I have to manually start the service from the system tray.

ShreyasZare commented 3 years ago

Thanks for the post. Please check Windows Services console and ensure that the "Technitium DNS Service" has the startup type set to "Automatic" as shown in the image below:

image

The service will start when machine reboots and if its still not starting then do check the log files once and see if there are any errors being logged.

mrjones2014 commented 3 years ago

@ShreyasZare it is already set to Automatic. Where can I check the log files?

mrjones2014 commented 3 years ago

@ShreyasZare here are the most recent log files surrounding the times when I restarted my server (the whole machine, not the DNS server)

2020-11-16.log 2020-11-15.log

Globulopolis commented 3 years ago

@mrjones2014 see the system and app logs for errors under Event Viewer(Start > Control Panel > System and Security > Administrative Tools). And try to setup service recovery on failure. Set all three to restart after 1 min.

ShreyasZare commented 3 years ago

@mrjones2014: The logs don't contain the events when the DNS server starts. Try to get the logs for the period when the server reboots and the DNS service fails to start.

And as @Globulopolis said, do check for Windows Event Viewer (see image below) and see for Error entries for the DNS service at the time when the server rebooted.

image

Post any errors that you see from the Event Viewer or from the DNS server logs.