guelfoweb / knock

Knock Subdomain Scan
GNU General Public License v3.0
3.85k stars 856 forks source link

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

Open essoojay opened 3 months ago

essoojay commented 3 months ago

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 commented 2 months ago

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