-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error connecting to the DNS server #230
Comments
sorry for the late response. Do you still have the problem? The logs show |
I have the same problem. After changing one of the settings (and changing it back) it works for a while. Then it starts displaying the error for every email. Tried both Google's 8.8.8.8 and CloudFlare's 1.1.1.1 |
Are you also seeing But the add-ons behavior in regards to retrying is definitely not helping in this case, and needs improvements. For now I suggest the following workarounds:
To enable
|
I attached a test version to #199 (comment) there the key storing feature should work also in TB 78. |
Thanks lieser for the 4.0.0pre4.1 drop. I've installed the new test 4.1 package now, and will report back on finding over the next 24 / 48 hours. |
was working fine since yesterday with latest 4.1 codeset until about an hour ago, now all mail Dkim checks fail.. below is your (lieser) github mail response to me. |
Note that I did not change anything in 4.0.0pre4.1 to improve the underlying issue. It only includes the Caching of the DKIM keys feature, that should greatly reduce the impact of this issue. Regarding the log you showed: The interesting pars are happening in the experiments part of the add-on. Unfortunately the logs for that (or code) do not appear in the add-ons debugger. You will have to open the normal Error Console from Thunderbird to see them (or the debugger for Thunderbird itself, but this is not needed). |
The log you posted shows What error caused your DNS server to be marked as disabled should be shown further up the log. See e.g. the image in the first post, there it shows |
I see that jsdns.js:86 log entry now. I've rebooted my desktop box this morning, DKIM plugin is working optimally at the moment, i'll keep the console log open today in the hope of capturing the additional jsdns fault log details at precisely the moment the DNS server is tagged as dead (likely assigning the rcode = 5) Per your prior Reponses on this thread, once the DNSServer is marked as dead, no retry occurs - and either DNS setting charge or TB restart is required to reactive it again. |
No replication of the above error reported today, so i did a bit of experimenting. Then reconnected ISP, got some more mail down, and triggered a DKIM process - same error shown "error connecting to DNS server". Likely this is a known limitation, no DNS server connection Retry, but still I would expect the DKIM process to attempt to reconnect to DNS or at a minimum to reattempt a DNS server connection after a set interval of time since last fail, maybe a timestamp stored with prior fail, and retry after x seconds, if attempting to connect to the DNS server after prior failure is a concern. |
restart and retest TB, after checking connection health is good, i can ping 8.8.8.8, 1.1.1.1, 1.0.0.1 |
if you can advise on how to debug the experiments js files, such as jsdns.js I believe i can track down the fault, and walk though code such as browser.jsdns.txt(). |
Great feedback, tks! Regarding 192.168.42.129 :
CMD: ipconfig/all Ethernet adapter Ethernet 2: Connection-specific DNS Suffix . : In the entries for the DNS servers stored on my registry at location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
Conclusion:
===========================
Conclusion: ============================== One question for you, on these calls to the DNS servers (4 registered IP's in my case), the expected action is to call each one in sequence, on fail(timeout etc) of one DNS server, trigger a query to the next DNS IP in the array? |
Can you please repeat your test with If it still works with nslookup using TCP, do you by chance have access to the logs of the DNS server? I also just now did a network capture with Wireshark, and then comparing it to nslookup noticed the following: If the current behavior is something you can easily reproduce, I will also try to provide you with a testing version that is not using a static TXID, so you can just try out if this is causing problems. Yes, that code is definitely not the most pleasant to debug. Especially since I my extensions to the original code didn't help readability (the code would definitely profit from a refactoring)
Your observations are correct. If there is an error, the DNS server is marked as dead, and the next DNS server is tried. If And again, with your temporary network issues, the add-ons behavior may not be the best user experience. But it is currently unfortunately totally expected. |
The command I had to use is slightly different, but I think we've found the problem.
Looks like this is a problem with just my local DNS server, since others appear to be working just fine:
My router is running OpenWrt with dnsmasq, but the log only shows:
Seems like this is a problem on my side then. Thanks for your help and sorry for bothering you with it! |
As there has been no response since a while I guess the issue as been resolved for you all (or at least a workaround found). If anyone still has problems, please create a new issue, as this one is getting hard to follow. |
Well it worked great, I do not have any idea what has changed!
DKIM_Verifier.Verifier DEBUG 1 DKIM-Signatures found. verifier.mjs.js:1147:8
![Capture](https://user-images.githubusercontent.com/24633960/101617994-ab6f8680-3a11-11eb-892c-d36201b74c52.JPG)
DKIM_Verifier.Verifier DEBUG Verifying DKIM-Signature 1 ... verifier.mjs.js:1162:9
DKIM_Verifier.Verifier DEBUG Parsed DKIM-Signature 1:
{…}
a_hash: "sha256"
a_sig: "rsa"
b: "X1QLH1ybi3WwLDCfFf1BNsiPpZZ2/YJ7AQ/4YBAeTNKGV4DWH8ZSl5jLUxamWChdTKRj+cFTgU6vGOKmbCUOwV70iF/H6ms/V6ydsbw6bHQRcjgmobeFy0J+E1joFvxBwtR7UJQdByYqDViVb2OaAaXcXVNfXUKOVgZPolrDhpw="
b_folded: "X1QLH1ybi3WwLDCfFf1BNsiPpZZ2/YJ7AQ/4YBAeTNKGV4DWH8ZSl5jLUxamWChdT\r\n\t KRj+cFTgU6vGOKmbCUOwV70iF/H6ms/V6ydsbw6bHQRcjgmobeFy0J+E1joFvxBwtR\r\n\t 7UJQdByYqDViVb2OaAaXcXVNfXUKOVgZPolrDhpw="
bh: "40Jc0tX5bKRiSOgX7fHRUnNwQ14Lg6cISIpgF5Oj/2M="
c_body: "relaxed"
c_header: "relaxed"
d: "github.com"
h_array: Array(5) [ "date", "from", "to", … ]
i: "@github.com"
i_domain: "github.com"
keySecure: undefined
l: null
original_header: "DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;\r\n\ts=pf2014; t=1607509055;\r\n\tbh=40Jc0tX5bKRiSOgX7fHRUnNwQ14Lg6cISIpgF5Oj/2M=;\r\n\th=Date:From:To:Subject:From;\r\n\tb=X1QLH1ybi3WwLDCfFf1BNsiPpZZ2/YJ7AQ/4YBAeTNKGV4DWH8ZSl5jLUxamWChdT\r\n\t KRj+cFTgU6vGOKmbCUOwV70iF/H6ms/V6ydsbw6bHQRcjgmobeFy0J+E1joFvxBwtR\r\n\t 7UJQdByYqDViVb2OaAaXcXVNfXUKOVgZPolrDhpw=\r\n"
q: "dns/txt"
s: "pf2014"
t: 1607509055
v: "1"
warnings: Array []
x: null
z: null
: Object { … }
verifier.mjs.js:1164:9
DKIM_Verifier.Verifier DEBUG computed body hash: 40Jc0tX5bKRiSOgX7fHRUnNwQ14Lg6cISIpgF5Oj/2M= verifier.mjs.js:1025:7
DKIM_Verifier.JSDNS: Resolving pf2014._domainkey.github.com TXT by querying 8.8.8.8 JSDNS.jsm.js:537:6
DKIM_Verifier.JSDNS: pf2014._domainkey.github.com/TXT: Lookup failed with rcode 5 JSDNS.jsm.js:806:7
DKIM_Verifier.background DEBUG dns result
{…}
bogus: false
data: null
rcode: 5
secure: false
: Object { … }
background.mjs.js:42:6
DKIM_Verifier.background INFO DNS query failed with result:
{…}
bogus: false
data: null
rcode: 5
secure: false
: Object { … }
background.mjs.js:48:7
DKIM_Verifier.Verifier ERROR DKIM_InternalError: DKIM_DNSERROR_SERVER_ERROR
getKey moz-extension://4bae297f-09f6-41fb-b9e8-e6079512da68/content/background.mjs.js:49
verifier.mjs.js:984:8
handleException moz-extension://4bae297f-09f6-41fb-b9e8-e6079512da68/modules/dkim/verifier.mjs.js:984
processSignatures moz-extension://4bae297f-09f6-41fb-b9e8-e6079512da68/modules/dkim/verifier.mjs.js:1168
DKIM_Verifier.Verifier DEBUG Exception on DKIM-Signature 1 verifier.mjs.js:1169:9
DKIM_Verifier.SignRules DEBUG shouldBeSigned:
Object { shouldBeSigned: false, sdid: (2) […], foundRule: true, hideFail: false }
signRules.mjs.js:374:7
DKIM_Verifier.AuthVerifier DEBUG authResult:
Object { version: "2.1", dkim: (1) […] }
AuthVerifier.mjs.js:173:7
The text was updated successfully, but these errors were encountered: