darling icon indicating copy to clipboard operation
darling copied to clipboard

Internet is not working

Open AKHACKER-program4hack opened this issue 4 years ago • 6 comments

Problem I am using Darling and when i use pip3 to install some packages it gives me error.

Command pip3 install flask

Output

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ffff4963a30>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/flask/

I have also tried using curl to check internet but again not working.

Command curl ipinfo.io

Output curl: (28) Resolving timed out after 300106 milliseconds

System Information I am using parrot os with kernel version 5.5.0

Kernel: 5.5.0-1parrot1-amd64 x86_64

AKHACKER-program4hack avatar Jun 14 '21 11:06 AKHACKER-program4hack

Is domain name resolution the part that is not working, or is the whole internet connectivity broken?

(Try connecting to an explicit IP address.)

bugaevc avatar Jun 14 '21 14:06 bugaevc

I Tried to use curl with ip address and its working fine its giving result with my local web server and online server if i use ip address.you are right it's DNS problem in it.

Tell me how to fix this.

I will be very Thankful to you.

i have this in my /etc/resolv.conf file

nameserver 8.8.8.8
nameserver 8.8.4.4

AKHACKER-program4hack avatar Jun 15 '21 09:06 AKHACKER-program4hack

I can't say I understand how Darling's resolver is implemented (darling-resolver calls into libresolv... or something), but from where I stand, it should be calling native glibc's APIs; then everything would just work (or not work) the same as it does on the host.

bugaevc avatar Jun 15 '21 11:06 bugaevc

I can't say I understand how Darling's resolver is implemented (darling-resolver calls into libresolv... or something), but from where I stand, it should be calling native glibc's APIs; then everything would just work (or not work) the same as it does on the host.

please give me solution. plz..

AKHACKER-program4hack avatar Jun 15 '21 17:06 AKHACKER-program4hack

darling-resolver

i am not understanding what i will do

AKHACKER-program4hack avatar Jun 19 '21 15:06 AKHACKER-program4hack

i have the same issue , this was caused by default curl installed with darling . curl is not allowing us to connect to a domain name only ip addresses are accepted. so i remove the default curl and copy the linux curl to /usr/bin of darling environment

jhay06 avatar Jun 30 '21 04:06 jhay06