msasanmh / SecureDNSClient

A DNS Client Supporting DNSCrypt, Anonymized DNSCrypt, DoH, DoT, UDP And TCP.
https://msasanmh.github.io/SecureDNSClient/
GNU General Public License v3.0
790 stars 79 forks source link

Dns flushed successfully bug. #136

Closed DogancanYr closed 4 months ago

DogancanYr commented 4 months ago

There is nothing in the event log.

msasanmh commented 4 months ago

There is nothing in the event log.

When this occurs?

DogancanYr commented 4 months ago

There is nothing in the event log.

When this occurs?

In previous versions, I did it as in the guide, but it does not work in the current version.

DogancanYr commented 4 months ago

After pressing quick connect.

msasanmh commented 4 months ago

This is what I've got by pressing quick connect:

Connecting... Please wait...

Connected.
Waiting for DNS to get online...
Local DNS Server started using 5 fastest servers in parallel.
Local DNS:
127.0.0.1
192.168.1.112

Connect Task: RanToCompletion
Setting DNS...
Local DNS 127.0.0.1 set to Wi Fi (D-Link DWA-525 Wireless N 150 Desktop Adapter)

Flushing Dns...
Flush: Successfully flushed the DNS Resolver Cache.
Register: Registration of the DNS resource records for all adapters of this computer has been initiated. Any errors will be reported in the Event Viewer in 15 minutes.
Dns flushed successfully.
Starting Proxy Server...
Local Proxy Server (HTTP, HTTPS, SOCKS4, SOCKS4A, SOCKS5):
127.0.0.1:8080
192.168.1.112:8080
Proxy Server http://127.0.0.1:8080 set to system.
Quick Connect finished (using "Saved Servers") in 26 Seconds, 709 Milliseconds

Is yours any different than this?

DogancanYr commented 4 months ago
Connecting... Please wait...

Checking dns.cloudflare.com...
It's available. Connecting...
Connected to dns.cloudflare.com.
Server delay: 301 ms.
Local DNS:
127.0.0.1
192.168.1.110

Connect Task: RanToCompletion
Setting DNS...
Local DNS 127.0.0.1 set to Ethernet (Realtek PCIe 2.5GbE Family Controller)

Flushing Dns...
Flush: Successfully flushed the DNS Resolver Cache.
Register: Registration of the DNS resource records for all adapters of this computer has been initiated. Any errors will be reported in the Event Viewer in 15 minutes.
Dns flushed successfully.

No matter how long I wait, it doesn't continue.

Also, I had a problem with it not starting automatically at startup, it's still the same.

DogancanYr commented 4 months ago

Now it says couldnt set dns. Most likely it timed out.

msasanmh commented 4 months ago

Did you select your Network Adapter in quick connect settings?

If you want to debug your issue, first disconnect by clicking on "Disconnect All".

  1. Go to "Connect" tab select the first option and connect.
  2. Go to "Set DNS" tab and find your active network adapter and try to set dns on it. Then let me know what happened.

Also Cloudflare is not blocked in your country, you don't need to bypass it.

If you want to use Cloudflare DoH, just add it to custom servers, change quick connect settings to working servers and check "Use custom servers" from check tab. This is Cloudflare DoH address: https://dns.cloudflare.com/dns-query

msasanmh commented 4 months ago

Now it says couldnt set dns. Most likely it timed out.

Are you using Cable or WiFi?

DogancanYr commented 4 months ago

I have used this software before and even reported problems with other issues. It definitely works in previous versions but not in this version. I'm using wired and it's the correct interface.

msasanmh commented 4 months ago

I have used this software before and even reported problems with other issues. It definitely works in previous versions but not in this version. I'm using wired and it's the correct interface.

Good. Do you have same issue even when you choose "Working servers" in quick connect settings?

DogancanYr commented 4 months ago

Yes .

msasanmh commented 4 months ago

Yes .

And I need to know when it reaches where it get stuck, what's the status of tray icon, is it blinking? And what does it say if you hover mouse on it? (The Icon next to windows clock)

DogancanYr commented 4 months ago

Yes .

And I need to know when it reaches where it get stuck, what's the status of tray icon, is it blinking? And what does it say if you hover mouse on it? (The Icon next to windows clock)

Quick connect is in action .

msasanmh commented 4 months ago

Yes .

And I need to know when it reaches where it get stuck, what's the status of tray icon, is it blinking? And what does it say if you hover mouse on it? (The Icon next to windows clock)

Quick connect is in action .

So obviously one the options is causing that issue. I need you to go step by step. In quick connect settings uncheck everything, then try to connect by clicking "Quick Connect" in check tab. If it was successful then check the very next option in Quick connect settings and try again. Repeat this until you find the option is causing this.

DogancanYr commented 4 months ago

I set it to default settings and removed the use saved servers if available tick and it worked that way. Yes, all the problem is solved and I can make the settings I want. Much obliged .

DogancanYr commented 4 months ago

But I still haven't been able to solve the problem of it not starting automatically.It works 2 versions ago. (The execute quick connect on startup button does not work.)

msasanmh commented 4 months ago

But I still haven't been able to solve the problem of it not starting automatically.It works 2 versions ago. (The execute quick connect on startup button does not work.)

Do you click on application icon on windows startup? Because it will cancel the Quick connect, it thinks you want to connect manually.

msasanmh commented 4 months ago

I set it to default settings and removed the use saved servers if available tick and it worked that way. Yes, all the problem is solved and I can make the settings I want. Much obliged .

Where was the problem? The GoodbyeDPI? Because some antivirus are sensitive to it. I suggest use proxy it's way powerful than GoodbyeDPI.

DogancanYr commented 4 months ago

I set it to default settings and removed the use saved servers if available tick and it worked that way. Yes, all the problem is solved and I can make the settings I want. Much obliged .

Where was the problem? The GoodbyeDPI? Because some antivirus are sensitive to it. I suggest use proxy it's way powerful than GoodbyeDPI.

Use saved servers if available feature remains open without exception. It doesn't uncheck itself. Even if I make another selection.

msasanmh commented 4 months ago

I set it to default settings and removed the use saved servers if available tick and it worked that way. Yes, all the problem is solved and I can make the settings I want. Much obliged .

Where was the problem? The GoodbyeDPI? Because some antivirus are sensitive to it. I suggest use proxy it's way powerful than GoodbyeDPI.

Use saved servers if available feature remains open without exception. It doesn't uncheck itself. Even if I make another selection.

It doesn't need to, application won't use it if you choose another section or another method to connect.

msasanmh commented 4 months ago

But I still haven't been able to solve the problem of it not starting automatically.It works 2 versions ago. (The execute quick connect on startup button does not work.)

Do you click on application icon on windows startup? Because it will cancel the Quick connect, it thinks you want to connect manually.

This is important, Don't click on app icon on windows startup.

DogancanYr commented 4 months ago

I set it to default settings and removed the use saved servers if available tick and it worked that way. Yes, all the problem is solved and I can make the settings I want. Much obliged .

Where was the problem? The GoodbyeDPI? Because some antivirus are sensitive to it. I suggest use proxy it's way powerful than GoodbyeDPI.

Use saved servers if available feature remains open without exception. It doesn't uncheck itself. Even if I make another selection.

It doesn't need to, application won't use it if you choose another section or another method to connect.

But the software uses it.It is ticked unless I uncheck it, only when I select someone else it makes the checkbox unusable.

DogancanYr commented 4 months ago

Instead of removing the tick,it renders the box useless. always uses the visible one.

msasanmh commented 4 months ago

I set it to default settings and removed the use saved servers if available tick and it worked that way. Yes, all the problem is solved and I can make the settings I want. Much obliged .

Where was the problem? The GoodbyeDPI? Because some antivirus are sensitive to it. I suggest use proxy it's way powerful than GoodbyeDPI.

Use saved servers if available feature remains open without exception. It doesn't uncheck itself. Even if I make another selection.

It doesn't need to, application won't use it if you choose another section or another method to connect.

But the software uses it.

It can be use by app when only connect mode is set to "Working Servers", other than that it's not even capable of using saved servers. I assure you.

DogancanYr commented 4 months ago

I set it to default settings and removed the use saved servers if available tick and it worked that way. Yes, all the problem is solved and I can make the settings I want. Much obliged .

Where was the problem? The GoodbyeDPI? Because some antivirus are sensitive to it. I suggest use proxy it's way powerful than GoodbyeDPI.

Use saved servers if available feature remains open without exception. It doesn't uncheck itself. Even if I make another selection.

It doesn't need to, application won't use it if you choose another section or another method to connect.

But the software uses it.

It can be use by app when only connect mode is set to "Working Servers", other than that it's not even capable of using saved servers. I assure you.

resim resim It just prevents me from changing the value, it's always ticked. Then you explain how it works when I turn that tick off.

msasanmh commented 4 months ago

I set it to default settings and removed the use saved servers if available tick and it worked that way. Yes, all the problem is solved and I can make the settings I want. Much obliged .

Where was the problem? The GoodbyeDPI? Because some antivirus are sensitive to it. I suggest use proxy it's way powerful than GoodbyeDPI.

Use saved servers if available feature remains open without exception. It doesn't uncheck itself. Even if I make another selection.

It doesn't need to, application won't use it if you choose another section or another method to connect.

But the software uses it.

It can be use by app when only connect mode is set to "Working Servers", other than that it's not even capable of using saved servers. I assure you.

resim resim It just prevents me from changing the value, it's always ticked. Then you explain how it works when I turn that tick off.

It prevents you from changing it because that option is not belong to "Fake Proxy Via Proxy DPI Bypass". It means it doesn't matter that option is ticked or not. If you turn it off, there would be no difference.

msasanmh commented 4 months ago

And it works by connecting to "Fake Proxy" settings.

DogancanYr commented 4 months ago

In the previous version it doesn't matter but in this version it is broken and always accepts it as ticked.

DogancanYr commented 4 months ago

Apply the above settings.

DogancanYr commented 4 months ago

resim

msasanmh commented 4 months ago

In the previous version it doesn't matter but in this version it is broken and always accepts it as ticked.

I just tested it right now. Look at my QC settings. In log you can't see anything related to saved server. What makes you say that? 20240224_010918.jpg

20240224_011057.jpg

DogancanYr commented 4 months ago

I don't quite understand. Tell me another way.

Connecting... Please wait...

Checking dns.cloudflare.com...
It's available. Connecting...
Connected to dns.cloudflare.com.
Server delay: 68 ms.
Local DNS:
127.0.0.1
192.168.1.110

Connect Task: RanToCompletion
GoodbyeDPI is active, mode: Medium
Quick Connect finished (using "Fake Proxy Via Proxy DPI Bypass") in 13 Seconds, 948 Milliseconds
DogancanYr commented 4 months ago

Also make the settings one to one . resim

msasanmh commented 4 months ago

I don't quite understand.

Connecting... Please wait...

Checking dns.cloudflare.com...
It's available. Connecting...
Connected to dns.cloudflare.com.
Server delay: 68 ms.
Local DNS:
127.0.0.1
192.168.1.110

Connect Task: RanToCompletion
GoodbyeDPI is active, mode: Medium
Quick Connect finished (using "Fake Proxy Via Proxy DPI Bypass") in 13 Seconds, 948 Milliseconds

It's easy, just read the log, it says checking for cloudflare dns and it just connected to it not the saved servers.

(using "Fake Proxy Via Proxy DPI Bypass") uses "Fake Proxy" settings. This page 👇 20240224_012334.jpg

Saved servers are something else, don't get confused. We are working on full documentation but app is a bit advanced and requires more time.

DogancanYr commented 4 months ago

So should I make your settings ? I just changed the values ​​on that page and it connects every time. resim

This is what's written.

Connecting... Please wait...

Checking dns.cloudflare.com...
It's available. Connecting...
Connected to dns.cloudflare.com.
Server delay: 68 ms.
Local DNS:
127.0.0.1
192.168.1.110

Connect Task: RanToCompletion
GoodbyeDPI is active, mode: Medium
Quick Connect finished (using "Fake Proxy Via Proxy DPI Bypass") in 13 Seconds, 948 Milliseconds
msasanmh commented 4 months ago

So should I make your settings ? I just changed the values ​​on that page and it connects every time.

You need to find the best settings on your own ISP. The best settings is the one can get you connected everytime and easily.

resim

Don't forget to tick the "Set DNS to". Without setting dns app can help you.

This is what's written.

Connecting... Please wait...

Checking dns.cloudflare.com...
It's available. Connecting...
Connected to dns.cloudflare.com.
Server delay: 68 ms.
Local DNS:
127.0.0.1
192.168.1.110

Connect Task: RanToCompletion
GoodbyeDPI is active, mode: Medium
Quick Connect finished (using "Fake Proxy Via Proxy DPI Bypass") in 13 Seconds, 948 Milliseconds

Log I completely OK just don't forget to set dns on system.

DogancanYr commented 4 months ago

I understand the problem now, set dns to is problematic.

resim

DogancanYr commented 4 months ago

resim

msasanmh commented 4 months ago

I see... you're right. But I don't know how's that possible. Dns is set and flushed but it's still waiting 🤔

I don't have this issue but now at least I know where your problem is and I can check codes that are related to setting dns.

If I modify the app in a few days I'm gonna send a version of it to you, so you can tell the issue persist or not. This is our only way to debug this issue.

msasanmh commented 4 months ago

The problem is that your Network Adapter doesn't give any feedback about dns is being set or not. I need you to do me a favor. When app is stuck open a CMD window and execute this command: nslookup 0.0.0.0 Exactly like the image below: 20240224_021355.jpg

And get an Screenshot of the result and send it to me. You can do it tomorrow if it's too late.

msasanmh commented 4 months ago

Also watch this video and tell me the result: https://github.com/msasanmh/SecureDNSClient/assets/1586825/bcfb3eea-29ac-4d8b-8eb2-00c45bb5f5d2

DogancanYr commented 4 months ago

Ekran görüntüsü 2024-02-24 155528 Then I reset the dns settings. Ekran görüntüsü 2024-02-24 155635 Ekran görüntüsü 2024-02-24 155750

I could never get rid of this. resim

msasanmh commented 4 months ago

Thank you, now I can fix it. 🙏 For now you can try disabling IPv6 on your network adapter.

DogancanYr commented 4 months ago

resim I never thought of it.🤣😂🤣

msasanmh commented 4 months ago

resim I never thought of it.🤣😂🤣

Me neither 😁

DogancanYr commented 4 months ago

Now that you have opened the source code, can you also make it so that it does not notify every time the application is minimized ? 😊😊😊

msasanmh commented 4 months ago

Now that you have opened the source code, can you also make it so that it does not notify every time the application is minimized ? 😊😊😊

I can make it to popup only for new users.