Skip to content

Resolving `localhost` with onionmasqs resolver gives an unusable address

When having a local chutney environment, resolving localhost using the DNS resolver at 169.254.42.53 and performing an HTTP request through this IP afterwards gives a failure, namely: Failed to connect to 'localhost:80': tor: remote hostname lookup failure: Protocol error while launching a data stream

Steps to reproduce:

$ export LOCALHOST=$(dig +short @169.254.42.53 localhost)
$ curl --interface onion0 http://$LOCALHOST
WARN onionmasq: Failed to connect to 'localhost:80': tor: remote hostname lookup failure: Protocol error while launching a data stream
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information