lieser / dkim_verifier

DKIM Verifier Extension for Mozilla Thunderbird
MIT License
213 stars 36 forks source link

"Get DNS name servers form OS configuration" #24

Closed ralfbergs closed 10 years ago

ralfbergs commented 10 years ago

First please note the typo -- I assume this should read "Get DNS name servers FROM OS configuration."

Second, and this is the main thing -- it doesn't seem to work on my Mac, running Mac OS X 10.9.2 and TB 24.4.0. I have the checkbox checked, and still your extension doesn't seem to use the DNS that OS X uses (received via DHCP).

I found the following in the error console:

2014-04-06 22:47:45 DKIM_Verifier.JSDNS CONFIG  Got servers from resolv.conf: []
2014-04-06 22:47:45 DKIM_Verifier.JSDNS CONFIG  changed DNS Servers to : [{server:"8.8.8.8", alive:true}]

However, resolv.conf DOES contain the correct nameserver to use:

$ cat /etc/resolv.conf 
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
domain my.domain
nameserver 192.168.2.10

Yes, I know this is only a "dummy" file, but of course OS X is using the correct nameserver:

$ scutil --dns
DNS configuration

resolver #1
  search domain[0] : host.mydomain
  search domain[1] : mydomain
  nameserver[0] : 192.168.2.10
  if_index : 5 (en1)
  flags    : Request A records
  reach    : Reachable,Directly Reachable Address
...

Not sure whether I'm doing s/t wrong, or whether this is really a bug in your extension?

Thanks in advance for your help.

lieser commented 10 years ago

Thanks for reporting, it was a bug (last line of the file was ignored). Typo is also fixed. Fix will be included in the next version.