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

dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf {TERMUX} #149

Open
essoojay opened this issue Jun 8, 2024 · 1 comment

Comments

@essoojay
Copy link

essoojay commented Jun 8, 2024

Error trying to run on termux:

phone rooted (if that helps)

dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf

how to fix this

thanks

@dfalt0
Copy link

dfalt0 commented Aug 1, 2024

If I remember correctly, Temux doesn't have the same file path for /etc/resolv.conf found in "traditional" linux - doing some googling, found some useful info relating to that:

"Termux has /data/data/com.termux/files/usr/etc/resolv.conf - this file
is used by "dig" and other utilities which perform hostname resolution
internally. Others utilities use the DNS servers provided by Android OS."
https://groups.io/g/termux/topic/where_is_etc_resolve_conf/71116836?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,71116836

Basically, knockpy isn't compatible with Temux out of the box

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