Unfortunately, NO.
Docker daemon is limited in this regard. It uses DNS services and static host files of the host machine.
Docs: https://docs.docker.com/engine/network/#embedded-dns-server
To work around this issue folks recommend running another container with a proper DNS server (such as ) and configure Docker to use it: https://serverfault.com/questions/612075/how-to-configure-custom-dns-server-with-docker