Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Dnscrypt-proxy starts then stops on reboots - internet access cut off

06 Oct 2018   #1
glnz

Dual boot - Win 7 Pro 64-bit and Win 10 Pro 64-bit
 
 
Dnscrypt-proxy starts then stops on reboots - internet access cut off

My PC is Win 7 Pro 64-bit with 16GB RAM. We have Verizon FIOS 1Gbps at home, so the setup is all pretty good.

A few months ago, I installed Simple DNSCrypt 64-bit on my Win 7 machine, which in turn installed the dnscrypt-proxy process and service on the machine. This encrypts all DNS lookups so my ISP cannot see where I go on the web, and I set it to connect to Cloudflare's new 1.1.1.1 DNS resolver, which is highly secure and doesn't keep logs. It's a great combination of services - see the stupendous article How to keep your ISP’s nose out of your browser history with encrypted DNS | Ars Technica .

Starting just a little while ago, on reboots, my internet connection got spotty and then started to die. Not all reboots, but maybe half. I figured out today that the the dnscrypt-proxy process and service are starting on reboots but then something is terminating them pretty quickly as booting continues. When they terminate, my PC cannot connect to the internet.

I've tried a number of things, but the only solution I found today was to change the dnscrypt-proxy service's start to "Automatic (Delayed Start)", which works but causes every reboot to take longer.

This link will take you to an xls with my entire Autoruns list of startup items: < THIS LINK > (Rows with strikeout text are DISABLED and do not start.) Do you see anything that would cause the dnscrypt-proxy process and service to terminate?

Any ideas?

Thanks.


My System SpecsSystem Spec
.
07 Oct 2018   #2
glnz

Dual boot - Win 7 Pro 64-bit and Win 10 Pro 64-bit
 
 

To add to my query above -

How would I do a .bat file to run on reboot-startup that would query whether the dnscrypt-proxy service is running, and, if not, start it, and this bat file would stay active and re-check for, say, 15 minutes so it would re-start the dnscrypt-proxy service ONLY when it was turned off.

Thanks.
My System SpecsSystem Spec
4 Weeks Ago   #3
glnz

Dual boot - Win 7 Pro 64-bit and Win 10 Pro 64-bit
 
 

UPDATE - PROGRESS - Oct 14 2018



I have done the following:



1) I have written this .bat file and saved it to my desktop - and you will see that the last line is the important one:



echo. >> "C:\Users\[MyUserName]\Desktop\start-dnscrypt-results.txt"

echo ---------- >> "C:\Users\[MyUserName]\Desktop\start-dnscrypt-results.txt"

echo. >> "C:\Users\[MyUserName]\Desktop\start-dnscrypt-results.txt"

echo %DATE% %TIME% >> "C:\Users\[MyUserName]\Desktop\start-dnscrypt-results.txt"

sc start dnscrypt-proxy >> "C:\Users\[MyUserName]\Desktop\start-dnscrypt-results.txt"



2) I have gone into Task Scheduler and scheduled the above batch file to run on Startup, with a delay of 30 seconds, and with Highest Privileges. (I had to use Task Scheduler with Highest Privileges because I could NOT get my bat file to run as Administrator otherwise - if I run it any other way, I must manually run it "as Administrator" and click Yes on the UAC prompt.)



3) I configured the Properties of the service dnscrypt-proxy to retry to start three times.



4) I also needed to change that service to start as "Automatic" and not "Automatic (Delayed Start)".



Well, it is working.



When I reboot, I can see either that the service is starting and staying on, in which case the .bat file leaves an error message in the results file,
or that the service starts and then stops and then starts again, with success codes in the results file.



What do you think?



By the way, the results file looks like this --


[SC] StartService FAILED 1056:

An instance of the service is already running.

Sat 10/13/2018 18:32:52.80 [SC] StartService FAILED 1056:

An instance of the service is already running.

Sat 10/13/2018 18:35:04.10 [SC] StartService FAILED 1056:

An instance of the service is already running.

Sat 10/13/2018 19:11:52.22

SERVICE_NAME: dnscrypt-proxy TYPE : 10 WIN32_OWN_PROCESS
STATE : 2 START_PENDING (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x7d0 PID : 3532 FLAGS :

Sat 10/13/2018 20:52:48.19 [SC] StartService FAILED 1056:

An instance of the service is already running.

Sun 10/14/2018 7:17:51.31

SERVICE_NAME: dnscrypt-proxy TYPE : 10 WIN32_OWN_PROCESS
STATE : 2 START_PENDING (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0 PID : 2592 FLAGS :
---------- Sun 10/14/2018 9:27:55.70 [SC] StartService: OpenService FAILED 5:

Access is denied.



My System SpecsSystem Spec
.

Reply

 Dnscrypt-proxy starts then stops on reboots - internet access cut off




Thread Tools




Similar help and support threads
Thread Forum
When Windows starts it reboots!
Hi. I have been trying to fix a BSOD for 2 days now I did a bunch of system restores and all of them have failed. Now the computer won't boot at all it doen't give a BSOD any more though. P.S. I can't boot into safe mode. When I boot into safe mode it just reboots and when I normal boot it just...
General Discussion
My internet connect stops working and says no access?
Everywhere in my house my internet works but the second i go in my room it stops. It is still connected it just says no internet access. My parents computer works in my room. Is there like a setting I can change to help make it work or is it something with my actual internet?
Network & Sharing
windows did an update and now i can't access internet - proxy problem?
Hi all, I'm having problems with windows 7 and am not very comuter literate, so hope you can help me in simple terms! In fact, my computer has been working fine, connecting to the internet fine etc. Yesterday, windows 7 did some auto-updates, and now despite an active internet...
Network & Sharing
chrome addon changed my proxy and cannot access internet
Hi all, I installed Switchy! to Chrome and try to change proxy with using different numbers. suddenly chrome gave a connection error and i uninstalled the addon. and now i cannot use any browser (iexplorer or firefox). there is no wireless connectivity problem, and i can use browsers if i change...
Browsers & Mail
Game starts and PC reboots
Hi, Got a problem with my pc. I recently made the move from Vista Home Premium 32-bit to Windows 7 Home Premium 64-bit and upgraded my graphics card from the onboard one. Here are my system specs: HP Pavilion Elite m9242.ch QuadCore Intel Core 2 Quad Q6600, 2.4GHz Asus IPIBL.LB...
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:11.
Twitter Facebook Google+