One of the host run many containers by compose up, Since host have been changed network config (eg: nameserver), And then dns request send to old it of the container too
Container resolv as following nameserver 127.0.0.11 options timeout:1 attempts:1 rotate single-request-reopen ndots:0
Only one method by docker all containers restart? Is anything have better?
127.0.0.11 looks like the internal DNS address when a user-defined network is created either by a user or by Docker Compose.
If I understand it correctly, the requests are sent to your old DNS server. I’m actually not sure how the internal DNS server sends requests to the DNS servers defined on the host, so it is possible that you need to recreate it if this is what you experience.