bandwhich
bandwhich copied to clipboard
fix(dns): fixup "Error parsing resolv.conf: InvalidOption(17)" error
This error because trust-dns-resolver 0.18.x
use the old resolv-conf 0.6.x
❯ bandwhich -V
bandwhich 0.20.0
❯ bandwhich
Error: Could not initialize the DNS resolver. Are you offline?
Reason: ResolveError { inner: Custom { kind: Other, error: "Error parsing resolv.conf: InvalidOption(17)" }
io error }
with systemd-resolved
we have the /etc/resolv.conf
like this which will trigger the error.
nameserver 127.0.0.53
options edns0 trust-ad
ping
I had the same issue - confirming that this PR does fix the issue for me.
@imsnif
I can also confirm that this fixes the most recent issues I observed.
I'm also affected by this. Your branch fixes the issue for me—thanks.
I upgrade dep crates to the latest version. and released a new version for myself usage. it is under: https://github.com/ttys3/bandwhich/releases/tag/0.20.1
there still tests problem. when the tests issue migrated, I think I could make another PR.
see https://github.com/ttys3/bandwhich/commits/0.20.1
in favor of https://github.com/imsnif/bandwhich/pull/262
close this