Fixing DNS issues with .onion addresses
Some tools support delegation of services to a remote address, but sometimes they try to resolve DNS themselves using the local DNS resolver. The resolver would get an onion address and issue a DNS error because it doesn’t know how to resolve .onion, even if the machine itself is torified. You can use socat to create a local interface that binds a local port to an onion address, so that the tool won’t try to resolve the domain.
In this case, you would use SOCKS4A to stop trying to resolve the domain and instead pass the domain to sys-whonix to make that request for you.
socat TCP-LISTEN:<LOCAL PORT>,fork SOCKS4A:<SYS-WHONIX GATEWAY IP>:<ONION ADDRESS>.onion:<ONION ADDRESS PORT>,socksport=9050 &
Then you can make requests to the onion address by making requests to localhost:<LOCAL PORT> instead of the onion address.
You can put this command in /rw/config/rc.local for persistence.