bandwhich icon indicating copy to clipboard operation
bandwhich copied to clipboard

fix(dns): fixup "Error parsing resolv.conf: InvalidOption(17)" error

Open ttys3 opened this issue 3 years ago • 5 comments

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

ttys3 avatar Mar 24 '21 06:03 ttys3

ping

Congee avatar Mar 27 '21 19:03 Congee

I had the same issue - confirming that this PR does fix the issue for me.

jgauth avatar Apr 01 '21 18:04 jgauth

@imsnif

ttys3 avatar Jun 05 '21 05:06 ttys3

I can also confirm that this fixes the most recent issues I observed.

Ma27 avatar Jun 30 '21 13:06 Ma27

I'm also affected by this. Your branch fixes the issue for me—thanks.

adamroyjones avatar Aug 23 '21 20:08 adamroyjones

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

ttys3 avatar Jan 20 '23 05:01 ttys3

in favor of https://github.com/imsnif/bandwhich/pull/262

close this

ttys3 avatar Jan 20 '23 07:01 ttys3