DeletedUser202 Thanks, but I found the problem, I know what a DNS resolver is and how it works.
In fact, it doesn't work when I use a custom DNS server in the application, but it works if I use Cloudflare or Quad9 suggested by default.
Adding a custom DNS resolver works correctly in settings > networkd and internet > private dns.