Domain Name translation failed with container

Hello,

I hope you can help me we some network trouble …
I have a domain name associate with a public ip address of a web service on a docker container.
The host is connected to my public network and connected to my container with a docker interface. To contact my container, i’m using network address translation associating the private address of my container to the public.
My problem is linked with the domain name. When i send an http request to my web service (associate to the domain name), the domain name is translate to an ip address in the docker network (because of NAT). Due to this translation, my web service answers with an error. Does anyone know how to avoid it ? it tried to modify my /etc/host files, but it didn’t work …

Regards