bench@instance-1:~/erpnext$ bench config dns_multitenant on
bench@instance-1:~/erpnext$ sudo bench setup lets-encrypt erp.site.io
Running this will stop the nginx service temporarily causing your sites to go offline
Do you want to continue? [y/N]: y
INFO:bench.utils:sudo systemctl stop nginx
INFO:bench.utils:/opt/certbot-auto --config /etc/letsencrypt/configs/erp.site.io.cfg certonly
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for erp.site.io
Waiting for verification…
Challenge failed for domain erp.site.io
http-01 challenge for erp.site.io
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: erp.site.io
Type: connection
Detail: dns :: DNS problem: NXDOMAIN looking up A for erp.site.io
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
INFO:bench.utils:sudo systemctl start nginx
There was a problem trying to setup SSL for your site
bench@instance-1:~/erpnext$ bench enable-scheduler
Enabled for erp.site.io
The NXDOMAIN is a DNS message type received by the DNS resolver (i.e. client) when a request to resolve a domain is sent to the DNS and cannot be resolved to an IP address. An NXDOMAIN error message means that the domain does not exist.
Could you post your DNS configuration?
It looks like that there is a misconfiguration in your DNS.
"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
"
If you want just try a local installation, name a site, for example, site1.local, and add this site in your hosts file.
edit C:\Windows\System32\drivers\etc\hosts file if you use windows, and add: 127.0.0.1 site1.local
this lets you use your local site without any DNS name resolution.