socket() failed: Function not implemented
When trying to use dig with tcp through torsocks 2.4.0 gives the following:
$ torsocks dig +tcp @8.8.8.8 torproject.org
../../../../lib/isc/unix/net.c:145: socket() failed: Function not implemented
; <<>> DiG 9.16.33-RH <<>> +tcp @8.8.8.8 torproject.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52850
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;torproject.org. IN A
;; ANSWER SECTION:
torproject.org. 57 IN A 116.202.120.166
torproject.org. 57 IN A 158.69.113.194
torproject.org. 57 IN A 95.216.163.36
torproject.org. 57 IN A 116.202.120.165
torproject.org. 57 IN A 158.69.113.215
;; Query time: 1010 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Oct 17 20:44:48 CEST 2022
;; MSG SIZE rcvd: 123
Version:
Name : torsocks
Version : 2.4.0
Release : 1.fc36
Architecture: x86_64
Install Date: Di 31 Mai 2022 22:47:45
Group : Unspecified
Size : 160175
License : GPLv2+
Signature : (none)
Source RPM : torsocks-2.4.0-1.fc36.src.rpm
Build Date : Di 31 Mai 2022 22:38:51
Build Host : gasteiz.b.scrit.ch
URL : https://gitweb.torproject.org/torsocks.git
Summary : Use SOCKS-friendly applications with Tor
Description :
Torsocks allows you to use most SOCKS-friendly applications in a safe way
with Tor. It ensures that DNS requests are handled safely and explicitly
rejects UDP traffic from the application you're using.