No such host Err when start tunnels

When I start my tunnels ,I received these err:

ERR Error opening metrics server listener error=“lookup localhost on 8.8.8.8:53: no such host”
Error opening metrics server listener: lookup localhost on 8.8.8.8:53: no such host

I don’t know how to solve this problem,who can help me?
(first,i use CLI to create my tunnel.second,i’m in China.)

i tried changing DNS to 1.1.1.1,but it didn’t work too.
is the domain or server of tunnel down?

oops,i forget to write this information:i using cloudflared in Ubuntu base on termux proot container.

i ping my domain of cf tunnel,and it’ tells me unknown host(=don’t have this name).


and i tried rollback the version,but it’s don’t ,too.


domain is outdated?!!

If you’re on linux and /etc/hosts has no entry for localhost, I’d guess that’s probably why, and its getting confused when trying to bind.
I encounter the same issue and after adding “localhost” in the host file, the error gone.

1 Like

This fixed it, added

127.0.0.1 localhost

to /etc/hosts and now things work fine.