Curl:(6) could not resolve host
Hi everyone!
I recently installed Tails 3.14.1 on a USB stick and was then trying to download the nginx webserver. I've followed their instructions for Debian distributions so far (http://nginx.org/en/linux_packages.html#Debian). When I used the following command in the root terminal I ran into the error below: root@amnesia:/# curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - curl: (6) Could not resolve host: nginx.org gpg: no valid OpenPGP data found. I then tried wget as an alternative: root@amnesia:/# wget https://nginx.org/keys/nginx_signing.key this gave me: --2019-06-22 19:50:13-- https://nginx.org/keys/nginx_signing.key Resolving nginx.org (nginx.org)... 1561233014 PERROR torsocks[12111]: socks5 libc connect: Connection refused (in socks5_connect() at socks5.c:202) failed: Non-recoverable failure in name resolution wget: unable to resolve host address 'nginx.org' I also noticed problems when pinging any website: root@amnesia:/# ping https:/nginx.org ping: https://nginx.org: Temporary failure in name resolution Did anyone experience similar issues and managed to fix that? Would be greatful for an easy fix ;) Thanks & Best Regards, Daniel |
These are domain name resolution issues, which may be only because the installation doesn't know of any name servers.
Are you sure you have an internet connection? What's in /etc/resolv.conf? |
Quote:
thanks for the quick response. internet connection via Tor browser works fine, even though a bit slow. /etc/resolv.conf has only 1 entry: nameserver 127.0.0.1 cheers |
If you don't have a name server running on your localhost, that's probably not enough.
What computer are you booting to the USB stick from? What's its OS? Do you have a router? Basically, the stick doesn't know how to resolve domain names. That's what you need to fix. |
Quote:
If I get that right, I have to tell the system which name server to use, correct? Where would I start with this? :) thx |
Quote:
Add those to /etc/resolv.conf See man resolv.conf |
Thwe messages in post #1 are obvious: no (direct) internet connection.
Windows 10? :confused: Tails? Web server? nginx? What are you really trying to achieve here? |
I have not played with tails in a long time and no expert to how it all works.
Tails uses the tor network which the browser is already configured and working. Any command line tool needs to use the tor proxy but the torsocks error probably means something isn't configured correctly. Tails is a live system and you need to configure persistence before you can save files to the USB drive. |
Quote:
In the meantime I found info on how DNS in Tails is configured so that no application is able to connect to the internet without using the Tor network. That would explain the symptoms... if anyone knows how to work around this, that would be awesome |
Quote:
sounds reasonable...thats basically what I just found out. any experience with proxy and torsocks config? :D ps: persistent storage is configured |
Quote:
in the end I’d like to get an onion service up and runnig...just out of curiosity and interest in recent online developments... my last touchpoint with webdesign and stuff was about 15 years ago ;) |
Check your /etc/tor/torsocks.conf file and see if it is configured for port 9150.
|
Quote:
|
Quote:
You can even go full out hipster and run gopher instead of http / https. |
Quote:
can and should that be changed? :) |
All times are GMT -5. The time now is 05:51 AM. |