SimpleDnsCrypt icon indicating copy to clipboard operation
SimpleDnsCrypt copied to clipboard

Pressing clock icon depopulates resolver lists

Open rmcohen3 opened this issue 9 years ago • 12 comments

Since upgrading to version 0.43, I noticed this issue. I tried both the x86 and x64 versions .

rmcohen3 avatar Oct 29 '17 19:10 rmcohen3

ref: https://github.com/bitbeans/SimpleDnsCrypt/issues/159

bitbeans avatar Oct 30 '17 05:10 bitbeans

@rmcohen3 can you test this: https://github.com/bitbeans/dnscrypt-measurement please? Any special Antivirus software or something installed?

bitbeans avatar Oct 30 '17 05:10 bitbeans

I am facing the same issue on Windows 7 64-Bit with the 64-bit version of SimpleDnsCrypt.

codespook avatar Oct 30 '17 06:10 codespook

Output of test as mentioned above. I have Symantec Endpoint Protection 12.1.6 installed and it did block dnscrypt-measurement.exe when first executed but after whitelisting the file, everything went fine. However, the issue still persists in SimpleDnsCrypt. Note that the resolvers list used is the latest one from here

C:\> dnscrypt-measurement.exe -n -d -l=dnscrypt-resolvers.csv
=====================================
36 Resolvers (fastest first)
Only DNSSEC: True
Only NoLogs: True
Only IPv4: true
=====================================
18 ms, Anatomical DNS, NoLogs: True, DNSSEC: True
18 ms, D0wn Resolver United States of America 02, NoLogs: True, DNSSEC: True
74 ms, D0wn Resolver Mexico 01, NoLogs: True, DNSSEC: True
82 ms, D0wn Resolver United States of America 04, NoLogs: True, DNSSEC: True
92 ms, D0wn Resolver Netherlands 04, NoLogs: True, DNSSEC: True
96 ms, D0wn Resolver France 02, NoLogs: True, DNSSEC: True
99 ms, DNSCrypt.eu Holland, NoLogs: True, DNSSEC: True
100 ms, D0wn Resolver Netherlands Random 02, NoLogs: True, DNSSEC: True
101 ms, DNSCrypt.nl The Netherlands (NL), NoLogs: True, DNSSEC: True
106 ms, D0wn Resolver Greece 01, NoLogs: True, DNSSEC: True
107 ms, DNSCrypt.org France, NoLogs: True, DNSSEC: True
109 ms, DNSCrypt.eu Denmark, NoLogs: True, DNSSEC: True
110 ms, Ipredator.se Server, NoLogs: True, DNSSEC: True
115 ms, D0wn Resolver Sweden 02, NoLogs: True, DNSSEC: True
121 ms, D0wn Resolver Latvia 02, NoLogs: True, DNSSEC: True
124 ms, D0wn Resolver Iceland 01, NoLogs: True, DNSSEC: True
128 ms, D0wn Resolver Sweden 01, NoLogs: True, DNSSEC: True
131 ms, D0wn Resolver Russia 01, NoLogs: True, DNSSEC: True
131 ms, D0wn Resolver Latvia 01, NoLogs: True, DNSSEC: True
137 ms, ns0.dnscrypt.is in Reykjavík, Iceland, NoLogs: True, DNSSEC: True
139 ms, D0wn Resolver Iceland 02, NoLogs: True, DNSSEC: True
148 ms, D0wn Resolver Spain 01, NoLogs: True, DNSSEC: True
150 ms, D0wn Resolver Austria 01, NoLogs: True, DNSSEC: True
231 ms, D0wn Resolver Tanzania 01, NoLogs: True, DNSSEC: True
251 ms, D0wn Resolver Indonesia 01, NoLogs: True, DNSSEC: True
259 ms, D0wn Resolver Singapore 01, NoLogs: True, DNSSEC: True
266 ms, D0wn Resolver South Africa 01, NoLogs: True, DNSSEC: True

codespook avatar Oct 30 '17 07:10 codespook

! Sorry about the bold, large print. I don't know why the text editor inserts it automatically.

I am running Comodo Internet Security Premium 10.0.1.6294. It did not complain when I first ran the resolvers utility. Here is the output I received:

D:\dnscrypt-measurement.exe -l=dnscrypt-resolvers.csv

56 Resolvers (fastest first) Only DNSSEC: False Only NoLogs: False Only IPv4: true

25 ms, Cisco OpenDNS with FamilyShield, NoLogs: False, DNSSEC: False 27 ms, CS Chicago IL US DNSCrypt server, NoLogs: True, DNSSEC: False 31 ms, Anatomical DNS, NoLogs: True, DNSSEC: True 35 ms, Cisco OpenDNS, NoLogs: False, DNSSEC: False 43 ms, CS New York City NY US DNSCrypt server, NoLogs: True, DNSSEC: False 44 ms, CS Atlanta GA US DNSCrypt server, NoLogs: True, DNSSEC: False 67 ms, CS Dallas TX US DNSCrypt server, NoLogs: True, DNSSEC: False 99 ms, D0wn Resolver France 02, NoLogs: True, DNSSEC: False 99 ms, okTurtles, NoLogs: True, DNSSEC: False 119 ms, D0wn Resolver Netherlands 02, NoLogs: True, DNSSEC: False 120 ms, CS secondary France DNSCrypt server, NoLogs: True, DNSSEC: False 120 ms, DNSCrypt.eu Holland, NoLogs: True, DNSSEC: True 125 ms, CS Switzerland DNSCrypt server, NoLogs: True, DNSSEC: False 134 ms, DNSCrypt.org France, NoLogs: True, DNSSEC: True 135 ms, CS cryptofree France DNSCrypt server, NoLogs: True, DNSSEC: False 150 ms, DNSCrypt.eu Denmark, NoLogs: True, DNSSEC: True 154 ms, D0wn Resolver Iceland 01, NoLogs: True, DNSSEC: False 158 ms, Ipredator.se Server, NoLogs: True, DNSSEC: True 158 ms, D0wn Resolver Sweden 01, NoLogs: True, DNSSEC: False 159 ms, ns0.dnscrypt.is in Reykjavík, Iceland, NoLogs: True, DNSSEC: True 162 ms, D0wn Resolver Latvia 02, NoLogs: True, DNSSEC: False 171 ms, D0wn Resolver Latvia 01, NoLogs: True, DNSSEC: False 174 ms, D0wn Resolver Russia 01, NoLogs: True, DNSSEC: False 196 ms, D0wn Resolver Spain 01- d0wn, NoLogs: True, DNSSEC: False 253 ms, D0wn Resolver Tanzania 01, NoLogs: True, DNSSEC: False 270 ms, D0wn Resolver Singapore 01, NoLogs: True, DNSSEC: False 302 ms, D0wn Resolver Indonesia 01, NoLogs: True, DNSSEC: False

rmcohen3 avatar Oct 30 '17 12:10 rmcohen3

I currently can`t reproduce the problem on my systems. But there is definitly a problem, as 4 people reported this to me now. I will check this :)

bitbeans avatar Oct 30 '17 15:10 bitbeans

I ran it through VS 2017 and found it causes an exception in AnalyseProxy.cs on line 58 (var response = await request.Resolve();). The exception thrown is:

System.MissingMethodException: Method not found: 'System.Reflection.FieldInfo[] System.Reflection.TypeExtensions.GetFields(System.Type, System.Reflection.BindingFlags)'.
   at DNS.Protocol.Marshalling.Struct.ConvertEndian[T](Byte[] data)
   at DNS.Protocol.Marshalling.Struct.GetBytes[T](T obj)
   at DNS.Protocol.Header.ToArray()
   at DNS.Protocol.Request.ToArray()
   at DNS.Client.ClientRequest.ToArray()
   at DNS.Client.RequestResolver.UdpRequestResolver.<Request>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at DNS.Client.ClientRequest.<Resolve>d__25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskA
waiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at SimpleDnsCrypt.Tools.AnalyseProxy.<Analyse>d__0.MoveNext() in D:\\Users\\....\\Documents\\Visual Studio 2017\\Projects\\SimpleDnsCrypt\\SimpleDnsCrypt\\Tools\\AnalyseProxy.cs:line 58

If I execute request.Resolve(); in the immediate window, I get this:

request.Resolve()
Exception thrown: 'System.MissingMethodException' in DNS
Exception thrown: 'System.MissingMethodException' in mscorlib.dll
Id = 4283, Status = Faulted, Method = "{null}", Result = "{Not yet computed}"
    AsyncState: null
    CancellationPending: false
    CreationOptions: None
    Exception: Count = 1
    Id: 4283
    Result: null
    Status: Faulted

I hope this helps. When I get some more time, I'll try to look into this further.

Cheers, o

oferz avatar Oct 31 '17 14:10 oferz

@oferz thank you, it seems there is a problem with finding the correct assemblies.

Edit: https://github.com/bitbeans/SimpleDnsCrypt/issues/148 @iWARR fixed this by installing .NET 4.7.1 (but i don`t know, if this really is a solution or will fix the problem)

bitbeans avatar Oct 31 '17 15:10 bitbeans

@rmcohen3 @nikw92 @oferz it may take some time, but for the next release i will publish a pre-release version :)

bitbeans avatar Oct 31 '17 15:10 bitbeans

I can confirm this bug, and the solution for me was installing .NET 4.7.1.

My OS is Windows 7 SP1 x64.

Shir01 avatar Dec 03 '17 06:12 Shir01

Yes, I can also confirm that installing .NET 4.7.1 resolved the problem for me as well.

rmcohen3 avatar Dec 03 '17 14:12 rmcohen3

Thanks for reporting the solution @Shir01 . Installing the latest .NET framework (v 4.7.1) does indeed solve the problem.

codespook avatar Dec 04 '17 00:12 codespook