DNS resolv problem when I activating rootless


I try to active rootless but I have a problem with DNS whem I active it.
I can resolv registry-1.docker.io from the shell but when I try to pull an image in rootless, docker don’t use my dns server :

docker compose up -d
[+] Running 1/1
 ✘ proxy Error                                                                                                                          20.0s
Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on read udp> i/o timeout

I don’t know where from and
I tried to force DNS in /etc/docker/daemon.json but nothing.

Someone have an idea ?

Thank you