Skip to content
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: Could not initialize the DNS resolver. Are you offline? #252

Closed
fox0 opened this issue Jul 10, 2022 · 4 comments
Closed

Error: Could not initialize the DNS resolver. Are you offline? #252

fox0 opened this issue Jul 10, 2022 · 4 comments

Comments

@fox0
Copy link

fox0 commented Jul 10, 2022

Reason: ResolveError { inner: Custom { kind: Other, error: "Error parsing resolv.conf: InvalidOption(17)" }

io error }
cat /etc/resolv.conf 
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
@fox0
Copy link
Author

fox0 commented Jul 10, 2022

work:
bandwhich -n

@fox0
Copy link
Author

fox0 commented Jul 10, 2022

bandwhich --version
bandwhich 0.20.0

@denosaurtrain
Copy link

I ran into the same error. Here's my resolve.conf:

nameserver 127.0.0.53
options edns0 trust-ad
search .

@fox0
Copy link
Author

fox0 commented Jul 23, 2022

dublicate: #235

@fox0 fox0 closed this as completed Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants