Certbot - check that a DNS record exists for this domain

Hello! I use Seafile Community Server 8 on Ubuntu 20.04 with Apache. When I try to get certificate with certbot by
certbot --apache certonly command, I get an error

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
  Domain: seafile.example.com
  Type:   dns
  Detail: DNS problem: NXDOMAIN looking up A for seafile.example.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for seafile.example.com>

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server 

I use default apache config from manual. Should it work from the box with default configuration or not? http web interfacen works fine.

Please help