Is there no DNS resolving from a host container to different networks?

I am using the following networks in docker:

Driver: host

Driver: bridge

Driver: bridge

I have same container (e.g. running in the host network (–net=host). I am trying to access from this host container to any bridged one (“myhomedocker_myhome-bridge”). I am able to ping the IP, but they aren’t static. So I want to ping the hostname (container name). Without any success.

Is this normal behavior?
Or am I doing something wrong?

Could you please help me? I am a docker Newbie. :slight_smile:

Thank you very much.

unless you are using docker-compose to construct a local network, there is no inter container DNS support.

Thank you for the answer.
Do you have an example for me?

no, search on docker-compose (it is a separate app you have to install)