PROBLEM CREATE SUBDOMAIN

lrdmafia

Verified User
Joined
Jun 30, 2020
Messages
48
Hello,
I accidentally deleted the vhost.tvpost.ro subdomain and when i try to create it again it won't let me
I get the error: Sub-domain is forbidden

Captură de ecran din 2023.06.15 la 22.05.32.png




any other name I put works ,
 
I deleted it from here

Captură de ecran din 2023.06.15 la 22.46.19.png



in the /home/admin/domains/ it's not , I also searched in /var/named/ , /etc/virtual/ , nothing
 
Try running

Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

Maybe it is still hanging out in the configs.

I an assuming you want to recovery it manually?
 
I tried with the commands above, I get the same error : Sub-domain is forbidden
 
Is your server host name vhost?

what is output of

Code:
hostnamectl

You cant create a subdomain named your host name.
 
Static hostname: vh.tvpost.ro
Transient hostname: vhost.tvpost.ro
Icon name: computer
Machine ID: a3153db931754834b05352275f87cf73
Boot ID: c0138c9e339f446fb53cb71d31417db6
Operating System: AlmaLinux 8.8 (Sapphire Caracal)
CPE OS Name: cpe:/o:almalinux:almalinux:8::baseos
Kernel: Linux 4.18.0-425.19.2.el8_7.x86_64
Architecture: x86-64
 
[root@vhost custombuild]# hostnamectl
Static hostname: vh.tvpost.ro
Icon name: computer
Machine ID: a3153db931754834b05352275f87cf73
Boot ID: c0138c9e339f446fb53cb71d31417db6
Operating System: AlmaLinux 8.8 (Sapphire Caracal)
CPE OS Name: cpe:/o:almalinux:almalinux:8::baseos
Kernel: Linux 4.18.0-425.19.2.el8_7.x86_64
 
you may want to reboot the server as well.

but you can try to make the subdomain

as vhost like you wanted.
 
You also have to change the hostname in directadmin to vh.tvpost.ro and change the rdns/PTR record to the new hostname.
Because everything is pointing to vhost.tvpost.ro at this moment and vh.tvpost.ro does not resolve yet.
You might need to create a seperate dns zone entry for it.
 
You also have to change the hostname in directadmin to vh.tvpost.ro and change the rdns/PTR record to the new hostname.
Because everything is pointing to vhost.tvpost.ro at this moment and vh.tvpost.ro does not resolve yet.
You might need to create a seperate dns zone entry for it.
yes, i change in Server Settings hostname
and it works now.
Thanks for everything
@Richard G
@factor
 
Back
Top