#Tailscale dns resolution through userspace socks5 proxy
1 messages · Page 1 of 1 (latest)
Specifically, I want tailscale 4via6 routing to work via dns entry, but it currently only works with the raw IP:
root@05cc57f69734:/# curl -v 10.100.36.97.via-2:22 -v
* Uses proxy env variable ALL_PROXY == 'socks5h://localhost:1055'
* Host localhost:1055 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:1055...
* connect to ::1 port 1055 from ::1 port 60356 failed: Connection refused
* Trying 127.0.0.1:1055...
* Connected to localhost (127.0.0.1) port 1055
* SOCKS5 connect to 10.100.36.97.via-2:22 (remotely resolved)
* Can't complete SOCKS5 connection to 10.100.36.97.via-2. (1)
* Closing connection
curl: (97) Can't complete SOCKS5 connection to 10.100.36.97.via-2. (1)
root@05cc57f69734:/# curl -v [fd7a:115c:a1e0:b1a:0:2:a64:2461]:22 -v
* Uses proxy env variable ALL_PROXY == 'socks5h://localhost:1055'
* Host localhost:1055 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:1055...
* connect to ::1 port 1055 from ::1 port 60362 failed: Connection refused
* Trying 127.0.0.1:1055...
* Connected to localhost (127.0.0.1) port 1055
* SOCKS5 connect to fd7a:115c:a1e0:b1a:0:2:a64:2461:22 (remotely resolved)
* SOCKS5 request granted.
* Connected to localhost (127.0.0.1) port 1055
> GET / HTTP/1.1
> Host: [fd7a:115c:a1e0:b1a:0:2:a64:2461]:22
> User-Agent: curl/8.5.0
> Accept: */*
>
* Received HTTP/0.9 when not allowed
* Closing connection
curl: (1) Received HTTP/0.9 when not allowed
And same result when ALL_PROXY=socks5://localhost:1055 instead