Domain already exists but it's not true

JohnyByk

Verified User
Joined
Mar 7, 2012
Messages
251
When im trying add domain i see warninng domain Already Exists. Domain: selserv.eu.

I read that: https://docs.directadmin.com/direct...ns-users-resellers.html#domain-already-exists.
It dosen't help.

I haven't configuration for this domain in this directories (i searched for phrase selserv.eu):
/etc
/var
/usr

Code:
root@sasuke:/# cd /etc/
root@sasuke:/etc# ack selserv.eu
aliases
43:[email protected]: root: [email protected]

root@sasuke:/etc# cd /var/
root@sasuke:/var# ack selserv.eu
[nothing]

root@sasuke:/var# cd /usr/
root@sasuke:/var# ack selserv.eu
[nothing]

root@sasuke:/usr# ack selserv.eu
local/directadmin/conf/setup.txt
3:[email protected]
4:hostname=server.selserv.eu
6:ns1=ns1.server.selserv.eu
7:ns2=ns2.server.selserv.eu

What is wrong with DA? I can add other domains but not this. Any ideas what can i do more?
 
Last edited:
selserv.eu is resolving so the domain is there I assume.
I see also you are using it in your hostname: server.selserv.eu

I had i once , then i reinstalled it and started with adding the main domain as user admin first, after that i created the hostname with that domain
Maybe that helps
 
Last edited:
Domain is registered but not delegated. I can't delegate domain into server which has not configured domain.
Hostname it's not the problem. I changed them and is the same.

Anyone know what DA check before add domain? Domain dosen't exist in system but him say so exist. What the ...
 
Fun fact is that i can create DNS zone with that domain name but i can't add domain from user level. Where should i looking for solution.
Really OS resinstallation is only way?
 
Where should i looking for solution.
Check all users including admin (user level) if the domain does not exist if you have not done so already.

Maybe you can also install mlocate and after installation run updatedb and after that run this command:
locate selserve
or send in a ticket.

I don't think reinstallation is the only way, there must be some other way. Maybe it's in some user.conf or somewhere else. Sometimes rebooting the server can help too.
 
I'm facing the same issue.

I deleted everything about the domain name, and "locate domainname.com" returned no data.
Restart the services (directadmin, bind, litespeed), also reboot the server and nothing.
 
locate domainname.com
Try without the .com because that can also be the case.
It's also possible that the name is present in a file. Did you delete it before?
If yes, check your /usr/local/directadmin/users/admin/user.conf for example if it's in there.

Otherwise, try removing the hostname record in DNS first, then see if you can create the domain name. Might want to send in a ticket if it doesn't work.

What did you do before this happened? Deleted a domain name or something?
 
What did you do before this happened? Deleted a domain name or something?
I restore a backup from Directadmin Server A (without MultiServer Setup) to a Server B (Same DA versions, configurations, etc..)

Try without the .com because that can also be the case.
I try using the beginning of the domain name (domain)
I deleted everything from everywhere that had been mentioned to the domain.

After that, i run:
/usr/local/directadmin/scripts/fix_da_user.sh username

rm /usr/local/directadmin/data/admin/show_all_users.cache

systemctl restart directadmin

Then, I perform the restore.
They restored the username and attached it to the creator (admin), but the domain is still "blank".
If I directly access the username to create the domain they fail with the message "Domain already exists."

Really weird behaviour.
 
I restore a backup from Directadmin Server A (without MultiServer Setup) to a Server B
So server B also has no multi-server setup enabled? If server B where the domain is now has Multi server setup enabled, check the slave server.

Otherwise it's indeed a bit weird. Must be present somewhere, I just don't know where. Or maybe send in a ticket.
 
Well, i found a solution.

The "problem" was inside the /etc/bind/named.conf
For some reason, after deleting (via the web panel) the user/domain, the data continues inside the file.

I manually delete the entry
zone "domainname.com" { type master; file "/etc/bind/domainname.db"; };
and Voilà, it works
 
Back
Top