Can,t use domain for web, if use hostname

Hi guys, need help. I use domain emkolbaski for hostname for VPS server.emkolbaski.c0m but i like use domain for web too like emkolbaski.c0m I try, but get error DNS oR ssl See pics please

create a new user, do not use the admin to host any sites.

yes, but if add domain to new user I get error Let’s Go sertificate

There are a few issues in your conf.

1.- Administrator user uses the package system, this package can’t be modified and it only allows 1 web domain, 1 mail, domain, 1 dns domain, etc.

You can change the package used by this user from system to default or another one to allow more web domain, mail domains, etc. but the recomendation is to use other normal user.

2.- You don’t have a DNS zone for emkolbaski.net, so neither emkolbaski.net nor www.emkolbaski.net has an A record and that’s the reason for the error message Error: DNS record for emkolbaski.net doesn't exist

3.- You have created the DNS zone for server.emkolbaski.net and this zone lacks the A records for NS sundomains.

❯ dig @207.231.106.164 server.emkolbaski.net any +noall +ans
server.emkolbaski.net.  14400   IN      MX      0 mail.server.emkolbaski.net.
server.emkolbaski.net.  14400   IN      TXT     "v=spf1 a mx ip4:207.231.106.164 -all"
server.emkolbaski.net.  14400   IN      SOA     ns1.emkolbaski.net. root.server.emkolbaski.net. 2025100210 7200 3600 1209600 180
server.emkolbaski.net.  14400   IN      NS      ns2.emkolbaski.net.
server.emkolbaski.net.  14400   IN      NS      ns1.emkolbaski.net.
server.emkolbaski.net.  14400   IN      A       207.231.106.164
server.emkolbaski.net.  14400   IN      CAA     0 issue "letsencrypt.org"

In that output you should have also these records:

ns1.emkolbaski.net.  14400   IN      A       207.231.106.164
ns2.emkolbaski.net.  14400   IN      A       207.231.106.164

Anyway, what I would do is the following…

1.- Disable Enforce subdomain ownership to allow the same domain being managed from two different users.

From Web UI:

Server settings -> Configure -> Security -> Policies -> Domains, change to No the option Enforce subdomain ownership and Save

From command line:

v-change-sys-config-value ENFORCE_SUBDOMAIN_OWNERSHIP no

2.- Create a new user or use any existing one to add first the DNS domain emkolbaski.net so it can be resolved. Once done, add also an A record for subdomain server.emkolbaski.net.

3.- Remove the DNS zone server.emkolbaski.net from administrator user.

4.- Now add the web domain and mail domain for emkolbaski.net from the new/different user

1 Like

Error: DNS record for emkolbaski.net doesn’t exist

no work, Try add to other user

Your server is not resolving emkolbaski.net yet.

You must add two A records for your NS records. Just like you did for webmail but also for ns1 and ns2.

Once done, show the output of these commands:

systemctl restart bind9
systemctl status bind9 --no-pager -l