Can’t establish a connection to the server at hostname:10000

DNS can’t have anything to do with anything if you’re connecting to 127.0.0.1:10000. That’s not a name, and no DNS lookup happens when you connect to an IP.

I have no idea what your problem is, but DNS is definitely not it.